Queries quota templates by using the management account of a resource directory.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProductCode | string | No | The abbreviation of the Alibaba Cloud service name. Note
For more information, see Alibaba Cloud services that support Quota Center.
| ecs |
Dimensions | object [] | No | The quota dimensions. | |
Key | string | No | The key of the dimension. Note
The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.
| regionId |
Value | string | No | The value of the dimension. Note
The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.
| 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 | ||
|