检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Overview of Server-Side Encryption APIs You can use APIs to configure encryption for existing buckets, as well as obtain and delete encryption configuration of existing buckets.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API deletes the lifecycle rules of a bucket.
input.CustomDomain = "www.example.com" // Delete the user-defined domain name bound to the bucket. output, err := obsClient.DeleteBucketCustomDomain(input) if err == nil { fmt.Printf("Delete bucket(%s)'s customdomain successful!
input.Key = "example/objectname" // Delete the object. output, err := obsClient.DeleteObject(input) if err == nil { fmt.Printf("Delete object(%s) under the bucket(%s) successful!
bucketname := "examplebucket" // Delete the bucket. output, err := obsClient.DeleteBucket(bucketname) if err == nil { fmt.Printf("Delete bucket:%s successful!
Table 5 DeleteObjectResponse Parameter Type Description deleteMarker bool Explanation: Whether the deleted object is a delete marker Value range: true: The deleted object is a delete marker. false: The deleted object is not a delete marker.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API returns the lifecycle rules of a bucket.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API returns the lifecycle rules of a bucket.
Bucket deletion is a non-idempotence operation and an error will be reported if the bucket you want to delete does not exist.
Obtaining the Lifecycle Configuration of a Bucket (SDK for Go) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.
Deleting Buckets Bucket Deletion Sample Code on GitHub OBS Error Codes Why Can't I Delete a Bucket? Parent topic: Bucket-Related APIs (SDK for Python)
Obtaining the Lifecycle Configuration of a Bucket (SDK for Python) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management.
Configuring Lifecycle Rules for a Bucket (SDK for Go) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.
Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.
Configuring Lifecycle Rules for a Bucket (SDK for Python) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management. This API configures lifecycle rules for a bucket.
Delete buckets. Get the bucket list or configuration information. Basic object management Allows you to upload, download, delete, and list objects. In detail, you can: Upload one or more files or folders. Upload large files in multipart uploads.
Bucket: "examplebucket" }; // Delete a bucket. const result = await obsClient.deleteBucket(params); if (result.CommonMsg.Status <= 300) { console.log("Delete bucket(%s) successful!"
Unmounting a Parallel File System If you do not need to access a mounted parallel file system or you need to add, modify, or delete parameters it has configured, you can unmount it. Unmounting a parallel file system does not affect data stored in the parallel file system.
if (ret_status == OBS_STATUS_OK) { printf("delete bucket successfully. \n"); } else { printf("delete bucket failed(%s).\n", obs_get_status_name(ret_status)); } // Release the allocated global resources.