Retrieves a list of resource quotas.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pai:ListQuotas |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/quotas HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The name of the resource quota. Fuzzy search is supported. |
quota-name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Quotas |
array<object> |
The list of resource quotas. |
|
|
array<object> |
The details of the resource quota. |
||
| QuotaType |
string |
The type of the resource quota. Valid value: PAI: a GPU resource group cluster of MaxCompute. |
PAI |
| Mode |
string |
The billing method. Valid values:
|
isolate |
| ProductCode |
string |
The product name. Valid values:
|
PAI_share |
| Name |
string |
The quota name. |
quota-name |
| Specs |
array<object> |
The list of specification descriptions. |
{\"cu\":\"11500\",\"minCu\":\"2300\",\"parentId\":\"0\"} |
|
object |
The specification description. |
||
| Name |
string |
The specification name. |
cu |
| Value |
string |
The specification value. |
11500 |
| Type |
string |
The type. This parameter can be empty. |
string |
| Id |
string |
The quota ID. |
1828233 |
| DisplayName |
string |
The alias of the resource quota. |
默认Quota。 |
| TotalCount |
integer |
The number of resource quotas that meet the filter condition. |
1 |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Quotas": [
{
"QuotaType": "PAI",
"Mode": "isolate",
"ProductCode": "PAI_share",
"Name": "quota-name",
"Specs": [
{
"Name": "cu",
"Value": "11500",
"Type": "string"
}
],
"Id": "1828233",
"DisplayName": "默认Quota。"
}
],
"TotalCount": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.