Obtaining OS Quotas
Function
This API is used to obtain the quotas of some ModelArts OS resources, such as the quotas for resource pools and networks.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
GET /v1/{project_id}/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
quotas |
Quota object |
Resource quotas. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of ResourceQuota objects |
Resource quota information. |
Parameter |
Type |
Description |
---|---|---|
type |
String |
Resource type. |
quota |
String |
Upper limit of the resource quota. |
used |
String |
Used quota. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Range: N/A |
error_msg |
String |
Definition: Error message. Range: N/A |
Example Requests
None
Example Responses
Status code: 200
OK.
{ "quotas" : { "resources" : [ { "type" : "pool", "quota" : 15, "used" : 10 }, { "type" : "network", "quota" : 15, "used" : 10 } ] } }
Status Codes
Status Code |
Description |
---|---|
200 |
OK. |
404 |
Not found. |
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