检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 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->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 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 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. 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.
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. You can set multiple lifecycle rules based on the prefix.
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->deleteBucketCors to delete CORS rules of a bucket. This example deletes the CORS rule of bucket bucketname.
You can call ObsClient->deleteBucketWebsite to delete the hosting settings of a bucket. This example deletes the hosting configuration of bucket bucketname.
You can call ObsClient->deleteBucketLifecycle to delete lifecycle rules of a bucket. This example deletes the lifecycle configuration of bucket bucketname.
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.
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.
Deleting a Single Versioning Object You can call ObsClient.deleteObject to delete an object version by specifying the version ID (VersionId). This example deletes object objectname from bucket bucketname by specifying VersionId.
If you delete the OBS agency configuration in a cross-region replication, the replication status becomes Failed. How to Use You can use OBS Console, SDKs, obsutil, or APIs to configure cross-region replication.
Permission.PERMISSION_READ WRITE A grantee with this permission for a bucket can upload, overwrite, and delete any object in the bucket. This permission is not applicable to objects.