QueryQuota
Queries the information about a specified level-1 quota group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:QueryQuota |
get |
*Quota
|
None | None |
Request syntax
GET /api/v1/quotas/{nickname}/query HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| nickname |
string |
Yes |
The quota name. |
%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p # The Chinese name must be encoded and escaped by using UTF-8 URL encoding. |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The tenant ID. |
483212237127906 |
| region |
string |
No |
The region ID. |
cn-chengdu |
| AkProven |
string |
No |
The trusted AccessKey pairs. |
null |
| mock |
boolean |
No |
Specifies whether to include submodules. Valid values: true and false. -true: The request includes submodules. -false (default): The request does not include submodules. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The request ID. |
0bc1eeed16675342848904412e08dd |
| httpCode |
integer |
The HTTP status code. |
200 |
| errorCode |
string |
The error code. |
success |
| errorMsg |
string |
The error message. |
Exception information |
| data |
object |
The data returned. |
|
| subQuotaInfoList |
array<object> |
The level-2 quotas. |
|
|
array<object> |
The returned data. |
||
| id |
string |
The ID of the level-2 quota. |
1000048 |
| name |
string |
The name of the level-2 quota. |
subquotaA |
| nickName |
string |
The nickname of the level-2 quota. |
subquotaA |
| type |
string |
This parameter corresponds to the resourceSystemType field. |
FUXI_ONLINE |
| status |
string |
The status of the resource. |
ON |
| tenantId |
string |
The tenant ID. |
478403690625249 |
| regionId |
string |
The region ID. |
cn-beijing |
| parentId |
string |
The parent resource ID. |
0 |
| cluster |
string |
The cluster ID. |
AT-120N |
| version |
string |
The version number. |
1 |
| billingPolicy |
object |
The order information. |
|
| odpsSpecCode |
string |
The order specifications. |
OdpsStandard |
| orderId |
string |
The order ID. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| instanceId |
string |
In MaxCompute, instanceId and orderId are considered the same. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| billingMethod |
string |
The billing method. Valid values:
|
subscription |
| scheduleInfo |
object |
The information about the scheduling plan. |
|
| currPlan |
string |
The current quota plan that has taken effect based on the scheduling plan. |
planA |
| currTime |
string |
The time when the plan specified by currPlan is scheduled. |
0800 |
| nextPlan |
string |
The quota plan that will take effect based on the scheduling plan. |
planB |
| nextTime |
string |
The time when the plan specified by nextPlan is scheduled. |
1700 |
| oncePlan |
string |
The quota plan that immediately takes effect. If the quota plan specified by this parameter is triggered and the plan is different from the plan specified by currPlan, this parameter is not empty. |
planC |
| onceTime |
string |
The time when the quota plan specified by oncePlan is scheduled. |
1500 |
| operatorName |
string |
The operator name. |
userA |
| timezone |
string |
The time zone of the project. |
UTC+8 |
| parameter |
object |
The quota description. |
{'maxCU': 10, 'minCU': 10, 'adhocCU': 0, 'schedulerType': 'Fifo'} |
| tag |
string |
The resource tag of a quota. |
abc |
| createTime |
integer |
The time when the resource was created. |
1688653978768 |
| creatorId |
string |
The ID of the Alibaba Cloud account that is used to create the quota plan. |
672863518 |
| groupName |
string |
The role group name. |
abc |
| saleTag |
object |
The identifiers of MaxCompute quota objects. The identifiers are the same as those in the Alibaba Cloud sales bill. This parameter is used for tags. |
|
| resourceIds |
array |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
|
|
string |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
The object type. Valid values: quota and project. |
"quota" |
| id |
string |
The quota ID. |
2523 |
| name |
string |
The quota name. |
quota_a |
| nickName |
string |
The quota alias. |
quota_nickname |
| type |
string |
This parameter corresponds to the resourceSystemType field. |
FUXI_OFFLINE |
| status |
string |
The status of the resource. |
ON |
| tenantId |
string |
The tenant ID. |
478403690625249 |
| regionId |
string |
The region ID. |
cn-beijing |
| parentId |
string |
The parent resource ID. |
null |
| cluster |
string |
The ID of the Managed Service for Prometheus cluster. |
AT-120N |
| version |
string |
The version number. |
1 |
| billingPolicy |
object |
The order information. |
|
| odpsSpecCode |
string |
The order specifications. |
OdpsStandard |
| orderId |
string |
The order ID. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| instanceId |
string |
In MaxCompute, instanceId and orderId are considered the same. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| billingMethod |
string |
The billing method. Valid values:
|
subscription |
| scheduleInfo |
object |
The information about the scheduling plan. |
|
| currPlan |
string |
The current quota plan that has taken effect based on the scheduling plan. |
planA |
| currTime |
string |
The time when the plan specified by currPlan is scheduled. |
0800 |
| nextPlan |
string |
The quota plan that will take effect based on the scheduling plan. |
planB |
| nextTime |
string |
The time when the plan specified by nextPlan is scheduled. |
1700 |
| oncePlan |
string |
The quota plan that immediately takes effect. If the quota plan specified by this parameter is triggered and the plan is different from the plan specified by currPlan, this parameter is not empty. |
planC |
| onceTime |
string |
The time when the quota plan specified by oncePlan is scheduled. |
1500 |
| operatorName |
string |
The operator name. |
userA |
| timezone |
string |
The time zone of the project. |
UTC+8 |
| parameter |
object |
The quota description. |
{"minCU":10, "adhocCU":0, "maxCU":10, "schedulerType":"Fair", } |
| tag |
string |
The resource tag of a quota. |
abc |
| createTime |
integer |
The time when the resource was created. |
1714356241163 |
| creatorId |
string |
The ID of the Alibaba Cloud account that is used to create the quota plan. |
1248953767546358 |
| groupName |
string |
The group name. |
abc |
| saleTag |
object |
The identifiers of MaxCompute quota objects. The identifiers are the same as those in the Alibaba Cloud sales bill. This parameter is used for tags. |
|
| resourceIds |
array |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
|
|
string |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
The object type. Valid values: quota and project. |
project |
Examples
Success response
JSON format
{
"requestId": "0bc1eeed16675342848904412e08dd",
"httpCode": 200,
"errorCode": "success",
"errorMsg": "Exception information",
"data": {
"subQuotaInfoList": [
{
"id": "1000048",
"name": "subquotaA",
"nickName": "subquotaA",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249\n",
"regionId": "cn-beijing",
"parentId": "0",
"cluster": "AT-120N\n",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard",
"orderId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"instanceId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"billingMethod": "subscription"
},
"scheduleInfo": {
"currPlan": "planA",
"currTime": "0800",
"nextPlan": "planB",
"nextTime": "1700",
"oncePlan": "planC",
"onceTime": "1500",
"operatorName": "userA",
"timezone": "UTC+8"
},
"parameter": {
"test": "test",
"test2": 1
},
"tag": "abc",
"createTime": 1688653978768,
"creatorId": "672863518",
"groupName": "abc",
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
],
"resourceType": "\"quota\"\n"
}
}
],
"id": "2523",
"name": "quota_a",
"nickName": "quota_nickname",
"type": "FUXI_OFFLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"parentId": "null",
"cluster": "AT-120N",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard",
"orderId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"instanceId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"billingMethod": "subscription"
},
"scheduleInfo": {
"currPlan": "planA",
"currTime": "0800",
"nextPlan": "planB",
"nextTime": "1700",
"oncePlan": "planC",
"onceTime": "1500",
"operatorName": "userA",
"timezone": "UTC+8"
},
"parameter": {
"test": "test",
"test2": 1
},
"tag": "abc",
"createTime": 1714356241163,
"creatorId": "1248953767546358",
"groupName": "abc",
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
],
"resourceType": "project"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.