Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
8.8 KiB
Querying OS Quotas
Function
Obtain the quotas of some resources in the ModelArts OS service, such as the resource pool quota and network quota.
Debugging
You can debug this API through automatic authentication in 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 |
quotas object |
Resource quota. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of resources objects |
Specifies the resource quotas. |
Parameter |
Type |
Description |
---|---|---|
type |
String |
Resource type. |
quota |
Integer |
Specifies the upper limit of the resource quota. |
used |
Integer |
Specifies used quotas. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error description. |
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.