检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
To disable logging for a bucket is to call ObsClient.setBucketLogging to delete the logging configuration. This example disables logging for bucket bucketname. The example code is as follows: // Hard-coded or plaintext AK/SK are risky.
You can call ObsClient.deleteBucketWebsite to delete the hosting settings of a bucket. This example deletes the hosting configuration of bucket bucketname. The example code is as follows: // Hard-coded or plaintext AK/SK are risky.
You can call ObsClient->deleteBucketTagging to delete bucket tags.
a bucket ACL) After finishing the configuration, the IAM user can use APIs or SDKs to upload, download, and delete objects in the bucket.
Configuring Lifecycle Rules for a Bucket obsClient.SetBucketLifecycleConfiguration Configure lifecycle rules for a bucket to periodically transition objects between storage classes and delete objects.
You can click Delete under the Operation column on the right of a tracker to delete the tracker. Deleting a tracker has no impact on existing operation records. When you enable CTS again, you can view operation records that have been generated.
For example, you can configure a lifecycle rule to delete objects with prefix texta/ and tag key1/value1 or key2/value2 120 days after their creation.
You can call ObsClient.deleteBucketTagging to delete bucket tags. Sample code is as follows: // Create an instance of ObsClient. var obsClient = new ObsClient({ // Hard-coded or plaintext AK/SK are risky.
OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object or delete expired objects, to effectively use storage features and optimize the storage space. You can set multiple lifecycle rules based on the prefix.
OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object and delete expired objects, to effectively use storage features and optimize the storage space. You can set multiple lifecycle rules based on the prefix.
OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object and delete expired objects, to effectively use storage features and optimize the storage space.
To delete objects in a batch, traverse objects and list to-be-deleted objects on your own. For details about deletion, see Deleting Objects. Parent topic: Quick Start
OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object and delete expired objects, to effectively use storage features and optimize the storage space. You can set multiple lifecycle rules based on the prefix.
You can call ObsClient->deleteBucketLifecycle to delete lifecycle rules of a bucket. This example deletes the lifecycle configuration of bucket bucketname.
You can call ObsClient->deleteBucketCors to delete CORS rules of a bucket. This example deletes the CORS rule of bucket bucketname.
To disable logging for a bucket is to call ObsClient->setBucketLogging to delete the logging configuration. This example disables logging for bucket bucketname.
You can call ObsClient->deleteBucketWebsite to delete the hosting settings of a bucket. This example deletes the hosting configuration of bucket bucketname.
OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object and delete expired objects, to effectively use storage features and optimize the storage space. You can set multiple lifecycle rules based on the prefix.
You can call ObsClient.deleteBucketLifecycle to delete lifecycle rules of a bucket. This example deletes the lifecycle configuration of bucket bucketname.
Deleting a Single Object You can call ObsClient.deleteObject to delete a single object. Sample code is as follows: // Create an instance of ObsClient. var obsClient = new ObsClient({ // Hard-coded or plaintext AK/SK are risky.