Obtaining Quota Information
Description
Obtain quota information.
Constraints
N/A
URI
GET /v2/manage/projects/{project_id}/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The value can be application/json;charset=utf-8 application/json The default value is application/json. |
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
quotas |
Array of ShowQuota objects |
List of quotas. |
Example Request
GET https://{endpoint}/v2/manage/projects/{project_id}/quotas
Example Response
Status code: 200
Obtaining the quota succeeded.
{ "quotas" : [ { "quota_limit" : 15, "quota_key" : "namespace", "unit" : "", "used" : 1 } ] }
Status Codes
Status Codes |
Description |
---|---|
200 |
Obtaining the quota succeeded. |
400 |
Request error. |
401 |
Authentication failed. |
500 |
Internal error. |
Error Codes
For details, see section Error Codes in API Reference.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.