Baidu AI Cloud
中国站

百度智能云

Object Storage

Get User's Quota Information

Interface Description

This interface is used to view the user quota setting. Note that this API can only be called by the primary user.

Request URI

GET /v1/?userQuota

Request Body Parameters

Description of Data Structure for Request Body Field

Response Body Parameters

Description of Data Structure for Response Body Field

Parameter Name Parameter Type Description Example Value
maxBucketCount Long Maximum number of creatable buckets in the quota setting. If it is -1, it indicates that there is no limit. 50
maxCapacityMegaBytes Long Maximum storage capacity limit in the quota setting. If it is -1 or 0, it indicates that there is no limit. 12334424

Request Example

GET /v1/?userQuota
Common Request Header


{ }

Response Example

HTTP/1.1 200 OK
<Common response header>

{
  "maxBucketCount" : 50,
  "maxCapacityMegaBytes" : 12334424
}

Error Code

Refer to the universal error code.

Previous
Set User's Quota
Next
Delete User's Quota Settings