检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
You cannot use this API to delete a specified lifecycle rule. When you call this API, all lifecycle rules in the bucket are deleted.
Deleting 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.
Default value: None deleteMarker boolean 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. Default value: false objectKey String Explanation: Object name.
Configuring Lifecycle Rules (SDK for Java) Function You can configure lifecycle rules to periodically delete objects or transition objects between storage classes. For more information, see Lifecycle Management.
delete_object(&option,&object_info,&responseHandler, &ret_status); if (OBS_STATUS_OK == ret_status) { printf("delete object successfully. \n"); } else { printf("delete object failed(%s).
delete_object(&options, &object_info, &response_handler, &ret_status); if (OBS_STATUS_OK == ret_status) { printf("delete object successfully. \n"); } else { printf("delete object failed(%s).
Default value: None expiredObjectDeleteMarker Boolean Yes if days or date is absent Explanation: Whether to delete expired delete markers. The value can be true or false. If tags are configured in a lifecycle rule, this element cannot be configured.
Configuring Bucket Lifecycle Rules Functions You can configure lifecycle rules to automatically delete objects or transition objects between storage classes. For details about lifecycle rules, see Lifecycle.
Disabling Bucket Logging You can call setBucketLogging to delete all logs of a bucket so as to disable logging of the bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Disabling Bucket Logging You can call setBucketLogging to delete all logs of a bucket so as to disable logging of the bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
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.
Deleting a Bucket You can call deleteBucket to delete a bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Deleting a Bucket You can call deleteBucket to delete a bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Default value: None deleteMarker boolean 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. Default value: false objectKey String Explanation: Object name.
Deleting CORS Rules You can call deleteBucketCORS to delete CORS rules from a bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Deleting Bucket Tags You can call deleteBucketTagging to delete bucket tags. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Deleting CORS Rules You can call deleteBucketCORS to delete CORS rules from a bucket. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Deleting Bucket Tags You can call deleteBucketTagging to delete bucket tags. Sample code is as follows: static OBSClient *client; NSString *endPoint = @"your-endpoint"; // Hard-coded or plaintext AK/SK are risky.
Restrictions To delete the BPA configuration of a bucket, you must be the bucket owner or have the required permission (obs:bucket:DeleteBucketPublicAccessBlock in IAM or DeleteBucketPublicAccessBlock in a bucket policy).
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.