Call GetQuota to retrieve the details of a resource quota. This helps you monitor current resource usage for effective resource management and planning.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pai:GetQuota |
none |
*All Resource
|
None | None |
Request syntax
GET /api/v1/quotas/{QuotaId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| QuotaId |
string |
No |
The ID of the resource quota. |
quota1ci8g79**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Verbose |
boolean |
No |
Specifies whether to return detailed information. |
true |
| WithNodeMeta |
boolean |
No |
Specifies whether to return the metadata of nodes that are attached to the resource quota. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E |
| QuotaId |
string |
The ID of the resource quota. |
quotajradxh4**** |
| QuotaName |
string |
The name of the resource quota. |
test-quota |
| ResourceType |
string |
The resource type of the quota. |
ECS |
| ParentQuotaId |
string |
The ID of the parent resource quota. |
quota1ci8g79**** |
| ResourceGroupIds |
array |
The resource groups that are associated with the resource quota. |
|
|
string |
The ID of the resource group. |
rg69rj0leslw**** |
|
| AllocateStrategy |
string |
The resource allocation policy. |
ByNodeSpec |
| Min | ResourceSpec |
The configuration of the minimum quota. |
|
| Description |
string |
The description of the resource quota. |
this is a test quota |
| Labels |
array |
The labels of the resource quota. |
|
| Label |
The key-value pair of the label. |
||
| CreatorId |
string |
The ID of the user who created the resource quota. |
1884692**** |
| LatestOperationId |
string |
The ID of the most recent change to the resource quota. |
operation**** |
| Status |
string |
The status of the resource quota. |
Ready |
| ReasonCode |
string |
The error code. |
“” |
| ReasonMessage |
string |
The cause of the error. |
“” |
| GmtCreatedTime |
string |
The time when the resource quota was created. |
2023-06-22T00:00:00Z |
| GmtModifiedTime |
string |
The time when the resource quota was last modified. |
2023-06-22T00:00:00Z |
| QuotaDetails |
QuotaDetails |
The details of the resource quota. |
|
| QuotaConfig | QuotaConfig |
The configurations of the resource quota:
|
|
| Workspaces |
array |
The workspaces that are associated with the resource quota. |
|
| WorkspaceIdName |
The information about the associated workspaces. |
||
| SubQuotas |
array |
A list of sub-quotas of the resource quota. |
|
| QuotaIdName |
The IDs of the sub-quotas. |
||
| QueueStrategy |
string |
The queuing policy for tasks in the resource quota. |
PaiStrategyIntelligent |
| Version |
string |
The version information. This parameter takes effect when ResourceType is set to ECS. |
1.0 |
| HyperZones |
array |
A list of high-performance network zones. |
|
|
string |
The ID of a high-performance network zone. |
A3 |
|
| QuotaCluster |
QuotaCluster |
The specifications and status of the cluster that is composed of resources within the quota. |
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.