This API is used to obtain the quotas of some ModelArts OS resources, such as the quotas for resource pools and networks.
GET /v1/{project_id}/quotas
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
quotas |
quotas object |
Resource quotas |
Parameter |
Type |
Description |
|---|---|---|
resources |
Array of resources objects |
Resource quota information |
Parameter |
Type |
Description |
|---|---|---|
type |
String |
Resource type |
quota |
Integer |
Upper limit of the resource quota |
used |
Integer |
Used quota |
Status code: 404
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Error code Minimum: 8 Maximum: 36 |
error_msg |
String |
Error message Minimum: 2 Maximum: 512 |
None
Status code: 200
OK
{
"quotas" : {
"resources" : [ {
"type" : "pool",
"quota" : 15,
"used" : 10
}, {
"type" : "network",
"quota" : 15,
"used" : 10
} ]
}
}
Status Code |
Description |
|---|---|
200 |
OK |
404 |
Not found |
See Error Codes.