PutBucketQuota
Updated at:2025-11-03
API description
The API is designed to set the capacity limits and object count limits for a single bucket.
Note: Only the bucket owner with FULL_CONTROL permission can make this request.
Request
Plain Text
1PUT /?quota HTTP/1.1
2Host: <BucketName>.bj.bcebos.com
3Date: <Date>
4Authorization: <Authorization_String>
No special parameters
| Name | Types | Description | Required or not | Remarks |
|---|---|---|---|---|
| maxObjectCount | int64 | Maximum limit for a single bucket count | Yes | A value of -1 or 0 indicates no limit. |
| maxCapacityMegaBytes | int64 | The maximum capacity limit for a single bucket, unit: MB. | Yes | A value of -1 or 0 indicates no limit. |
Response
Example
Plain Text
1PUT /?quota HTTP/1.1
2Host: <BucketName>.bj.bcebos.com
3Date: <Date>
4Authorization: <Authorization_String>
5{
6 "maxObjectCount" : 50,
7 "maxCapacityMegaBytes" : 12334424
8}
