Querying Quotas
Function
This API is used to query tenant quotas.
URI
- URI format
- Parameter description
Table 1 Parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID
For details about how to obtain the project ID, see Obtaining a Project ID.
Response
- Parameter description
Table 2 Parameter description Parameter
Type
Description
quotas
quota
See the quota field description.
- Parameter description of field quota
Table 3 Parameter description of field quota Parameter
Type
Description
resources
List<resource_resp>
Quota resources
- Parameter description of field resource_resp
Table 4 Parameter description of field resource_resp Parameter
Type
Description
unit
String
Unit
used
Integer
Used quota
quota
Integer
Quota size
type
String
Type
backup_capacity specifies the backup storage capacity quota. Value -1 indicates no restriction on the quota size.
backups specifies the number of retained backups.
- Example response
{ "quotas" : { "resources" : [{ "type" : "backup_capacity", "unit" : "GB", "quota" : -1, "used" : 0 }, { "used": 0, "type": "backups", "quota": 600 }] } }
Status Codes
- Normal
Status Code
Description
200
OK
- Abnormal
Status Code
Description
400
Invalid request parameters.
401
Authentication failed.
403
No operation permission.
404
Requested object not found.
500
Service internal error.
503
Service unavailable.
Error Codes
For details, 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