Queries quota templates by using the management account of a resource directory.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProductCode | string | No | The abbreviation of the Alibaba Cloud service name. Note
To query the abbreviation of an Alibaba Cloud service name, call the ListProducts operation and check the value of ProductCode in the response.
| ecs |
Dimensions | object [] | No | The quota dimensions. | |
Key | string | No | The key of the dimension. Note
| regionId |
Value | string | No | The value of the dimension. Note
| cn-hangzhou |
QuotaActionCode | string | No | The ID of the quota. | q_security-groups |
Id | string | No | The ID of the quota item. | 1**** |
MaxResults | integer | No | The maximum number of records that can be returned for the query. Valid values: 1 to 100. Default value: 30. | 30 |
NextToken | string | No | The token that marks the position from which you want to start the query. Note
If you leave this parameter empty, the query starts from the beginning.
| 1 |
QuotaCategory | string | No | The type of the quota. Valid values:
| CommonQuota |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053",
"MaxResults": 30,
"NextToken": "1",
"TotalCount": 40,
"QuotaApplicationTemplates": [
{
"Id": "1****",
"ProductCode": "ecs",
"Dimensions": {
"regionId": "cn-hangzhou"
},
"DesireValue": 802,
"NoticeType": 0,
"QuotaActionCode": "q_security-groups",
"ApplicableType": "continuous",
"ApplicableRange": [
0
],
"EnvLanguage": "zh",
"QuotaName": "Maximum Number of Security Groups\n",
"QuotaDescription": "The maximum number of security groups that can be created by the current account.\n",
"EffectiveTime": "2022-09-28T06:07:00Z",
"ExpireTime": "2022-09-29T06:07:00Z",
"QuotaCategory": "CommonQuota",
"Period": {
"PeriodValue": 1,
"PeriodUnit": "day"
}
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2023-03-08 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||
| ||||
2022-11-15 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||
|