Managing Bucket Quotas

By default, a newly created bucket has no quota. You can set a quota limit for a bucket to control the total capacity of objects that can be uploaded in the bucket. If the total capacity exceeds the configured object capacity, objects fail to be uploaded.

A bucket quota can control object uploading only after the quota is set. If the bucket quota is smaller than the capacity of uploaded objects, existing objects will not be deleted, but new objects cannot be uploaded. In this case, you can upload new objects only after deleting some existing objects until the used space is less than the quota limit.

A bucket quota must be a non-negative integer expressed in bytes. The maximum value is 263 - 1.

OBS does not provide an API for deleting bucket quotas. You can set the bucket quota to 0 to cancel the quota limit.

Using OBS API to Manage Bucket Quotas

You can configure bucket storage quotas by calling the API. For details, see Configuring Bucket Storage Quota.

You can query bucket storage quotas by calling the API. For details, see Querying Bucket Storage Quota.