Set User's Quota
Last Updated:2024-10-29
Interface Description
This interface is used to set the user quota. The quota includes the total number of buckets and total storage capacity of each region. At present, the maximum number of buckets cannot exceed 100. Note that this interface can only be called by the primary user.
Request URI
PUT /v1/?userQuota
Request Body Parameters
Description of Data Structure for Request Body Field
Parameter Name | Parameter Type | Required? | Description | Example Value |
---|---|---|---|---|
maxBucketCount | Long | Yes | Maximum number of creatable buckets. If it is -1, indicate that it is not set. | 50 |
maxCapacityMegaBytes | Long | Yes | Indicate the maximum storage capacity (MB). If it is -1 or 0, indicate that the storage capacity quota is not set, that is, there is no upper limit. | 12334424 |
Response Body Parameters
None
Request Example
PUT /v1/?userQuota
Common Request Header
{
"maxBucketCount" : 50,
"maxCapacityMegaBytes" : 12334424
}
Response Example
None
Error Code
Refer to the universal error code.