Obtaining the Quota
Function
This API is used to obtain the quota of the current tenant. If no quota is configured, the default one is returned.
URI
GET /v1/{project_id}/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant resource space ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
type |
No |
String |
Type of the resources for which the quota is to be queried. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
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 |
QuotaResourceResp object |
Description about the quota. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of QuotaItemInfo objects |
Error description. |
Example Requests
Query the resource quotas.
GET https://{endpoint}/v1/{project_id}/quotas
Example Responses
Status code: 200
Operation successful.
{ "quotas" : { } }
Status Codes
Status Code |
Description |
---|---|
200 |
Operation successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot