• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Buckets
  5. PUT Bucket storage class

PUT Bucket storage class

You can use this operation to create a default storage class for a bucket or change the default storage class of a bucket.

Only users granted the s3:PutBucketStoragePolicy permission can perform this operation. By default, only the bucket owner can perform this operation. The bucket owner can allow other users to perform this operation by granting them the permission or setting a bucket policy.

When a bucket has a default storage class, if users do not specify the object storage class when uploading or copying an object or initializing a multipart upload task, the object will use the default bucket storage class.

When users do not manually set a default storage class for a bucket, the bucket will have the Standard storage class by default.