Querying Quotas
Function
This API is used to obtain the quota list of a user.
URI
GET /v3/{project_id}/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID, which is used for resource isolation. For how to obtain a project ID, see Obtaining a Project ID. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
is_success |
Boolean |
Whether the query is successful. |
quotas |
object |
Quota list. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of objects |
Quota resource details. For details, see Table 4. |
Parameter |
Type |
Description |
---|---|---|
type |
String |
Quota type. |
min |
Integer |
Minimum quota. |
max |
Integer |
Maximum quota. |
quota |
Integer |
Current quota. |
used |
Integer |
Used quota. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Request
None
Example Response
{ "quotas": { "resources": [ { "type": "CU", "min": 0, "max": 100000, "quota": 2500, "used": 992 }, { "type": "QUEUE", "min": 0, "max": 1000, "quota": 50000, "used": 53 }, { "type": "DATABASE", "min": 0, "max": 500, "quota": 1000, "used": 593 }, { "type": "TABLE", "min": 0, "max": 10000, "quota": 50000, "used": 8548 }, { "type": "TEMPLATE", "min": 0, "max": 10000, "quota": 1000, "used": 130 }, { "type": "SL_PKG_RESOURCE", "min": 0, "max": 2000, "quota": 50000, "used": 525 }, { "type": "SL_SESSION", "min": 0, "max": 1000, "quota": 300, "used": 2 }, { "type": "JOB_CU", "min": 0, "max": 400, "quota": 400, "used": 0 }, { "type": "ELASTIC_RESOURCE_POOL", "min": 0, "max": 1024, "quota": 5000, "used": 3 } ] }, "is_success": true }
Status Codes
Status Code |
Description |
---|---|
200 |
Returned result. |
400 |
Error type and description. |
500 |
Internal server error. |
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