ListQuotas
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 |
| QuotaName |
string |
No |
Filters the results by QuotaName. Fuzzy matching is supported. |
quotajradxh43rgb |
| ResourceType |
string |
No |
The resource type of the quota. Valid values: Lingjun, ECS, and ACS. Default value: ECS. |
ECS |
| LayoutMode |
string |
No |
The display mode. Valid values: tree and list. |
Tree |
| ParentQuotaId |
string |
No |
Filters the results by ParentQuotaId.
|
quotajradxh43rgb |
| QuotaIds |
string |
No |
Filters the results by QuotaIds. Separate multiple IDs with commas (,). Only exact matching is supported. A maximum of 100 IDs can be specified at a time. |
quota1ci8g793pgm,quotajradxh43rgb |
| WorkspaceIds |
string |
No |
Filters the results by WorkspaceIds. Separate multiple IDs with commas (,). Only exact matching is supported. A maximum of 10 IDs can be specified at a time. |
21345,38727 |
| Statuses |
string |
No |
Filters the results by quota statuses. Separate multiple statuses with commas (,). Only exact matching is supported. |
Creating |
| PageNumber |
integer |
No |
The number of the page to return. Minimum value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Minimum value: 1. |
20 |
| SortBy |
string |
No |
The field by which to sort the returned results. Valid values:
|
status |
| Order |
string |
No |
The sort order. Valid values: desc and asc. |
desc |
| Labels |
string |
No |
Filters the results by label keys and values. Separate multiple labels with commas (,). |
official=true,gpu=false |
| Verbose |
boolean |
No |
Specifies whether to display details. Valid values:
|
true |
| WorkspaceName |
string |
No |
The name of the associated workspace. |
myshellprod |
| HasResource |
string |
No |
Specifies whether the quota contains resources. |
true |
| Versions |
string |
No |
Filters the results by version information. |
1.0 |
| ClusterType |
string |
No |
The cluster type. |
RayCluster |
| GPUType |
string |
No |
The GPU type. |
V100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Quotas |
array |
The list of resource quotas. |
|
| Quota |
The details of a single resource quota. |
||
| RequestId |
string |
The request ID. |
F082BD0D-21E1-5F9B-81A0-AB07485B03CD |
| TotalCount |
integer |
The total number of entries. |
23 |
Examples
Success response
JSON format
{
"Quotas": [
{
"QuotaId": "quota12345",
"QuotaName": "dlc-quota",
"ResourceType": "ECS",
"ParentQuotaId": "\"\"",
"ResourceGroupIds": [
"rg69rj0leslw****"
],
"AllocateStrategy": "ByNodeSpec",
"Min": {
"NodeSpecs": [
{
"Type": "ecs.g6.4xlarge",
"Count": 10,
"BindingPolicy": {
"NodeSpecCount": 5,
"IncludeNodes": [
"lrnabc"
],
"ExcludeNodes": [
"lrndef"
]
},
"HyperType": ""
}
]
},
"Description": "this is a test quota",
"Labels": [
{
"Key": "testAccTag",
"Value": "nihao"
}
],
"CreatorId": "1884692****",
"LatestOperationId": "operation****",
"Status": "Ready",
"ReasonCode": "“”",
"ReasonMessage": "“”",
"GmtCreatedTime": "2023-06-22T00:00:00Z",
"GmtModifiedTime": "2023-06-22T00:00:00Z",
"QuotaDetails": {
"DesiredMinQuota": {
"CPU": "100",
"GPU": "16",
"GPUMemory": "80G",
"GPUMemoryBytes": 85899345920,
"GPUType": "GPU",
"Memory": "100Gi"
},
"ActualMinQuota": {
"CPU": "100",
"GPU": "16",
"GPUMemory": "80G",
"GPUMemoryBytes": 85899345920,
"GPUType": "GPU",
"Memory": "100Gi"
},
"RequestedQuota": {
"CPU": "100",
"GPU": "16",
"GPUMemory": "80G",
"GPUMemoryBytes": 85899345920,
"GPUType": "GPU",
"Memory": "100Gi"
},
"NodeStatistics": {
"ActualMinNodeNum": 0,
"ActualMinHyperNodeNum": 0,
"AllocatedNodeNum": 0,
"AllocatedHyperNodeNum": 0,
"EmptyNodeNum": 0,
"AllocatedHyperNodeDetails": [
{
"HyperNodeName": "",
"AllocatedNodeNum": 0,
"TotalNodeNum": 0,
"EmptyNodeNum": 0
}
]
}
},
"QuotaConfig": {
"ACS": {
"ACSQuotaId": "rq-3kbt2gtimmyw7fgfgothocvh",
"AssociatedProducts": [
"PAI-DLC"
]
},
"ClusterId": "ceeb3724255364***",
"ControlPlaneClusterId": "",
"DefaultGPUDriver": "470.199.02",
"EnableGPUShare": false,
"EnablePreemptSubquotaWorkloads": false,
"EnableSelfQuotaPreemption": false,
"EnableSubQuotaPreemption": false,
"EniCacheConfig": {
"Enabled": false,
"CachePoolSize": 0
},
"IsEncryptedResource": false,
"OversoldUsageConfig": {
"DisabledBy": "",
"Disabled": false
},
"ResourceSpecs": [
{
"WorkspaceId": "122421",
"Product": "DLC",
"Specs": [
{
"SpecName": "spec_test",
"IsGuaranteedValid": true,
"IsOverSoldValid": true,
"CodeType": "\"\"",
"Code": "\"\"",
"Reason": "\"\""
}
]
}
],
"SandboxCacheConfig": {
"Enabled": false
},
"SelfQuotaPreemptionConfig": {
"PreemptedPriorities": [
0
],
"PreemptedProducts": [
"dlc"
],
"PreemptorPriorities": [
0
]
},
"SubQuotaPreemptionConfig": {
"PreemptedPriorityUpperBound": 9,
"PreemptedProducts": [
"dlc"
]
},
"SupportGPUDrivers": [
"470.199.02"
],
"SupportRDMA": false,
"UseCase": "",
"UserVpc": {
"VpcId": "vpc-abcdef****",
"SwitchId": "vs-abcdef****",
"SecurityGroupId": "sg-abcdef****",
"ExtendedCIDRs": [
"\"192.168.0.1/24\""
],
"RoleArn": "acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole",
"DefaultRoute": "eth0",
"DefaultForwardInfo": {
"NatGatewayId": "nat-7j4mka9wguxj",
"EipAllocationId": "eip-h29r78ieufbih"
}
},
"WorkloadTypes": [
""
]
},
"Workspaces": [
{
"WorkspaceId": "ws123***",
"WorkspaceName": "myshellprod"
}
],
"SubQuotas": [
{
"QuotaId": "quota12345",
"QuotaName": "dlc-quota"
}
],
"QueueStrategy": "PaiStrategyIntelligent",
"Version": "",
"QuotaCluster": {
"ClusterType": "RayCluster",
"Image": "registry.cn-shanghai.aliyuncs.com/pai-training/kmeans:v1.0.0",
"DataSources": [
{
"DataSourceId": "",
"MountPath": "",
"Uri": "oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/model/output/"
}
],
"Endpoints": {
"key": ""
},
"Status": ""
},
"GPUType": "L20",
"HyperZones": [
"A3"
]
}
],
"RequestId": "F082BD0D-21E1-5F9B-81A0-AB07485B03CD",
"TotalCount": 23
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.