Queries quota alerts.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
NextToken | string | No | The token that marks the position from which you want to start the query. Note
An empty value indicates that the query starts from the beginning.
| 1 |
MaxResults | integer | No | The maximum number of records that you want to return for the query. Valid values: 1 to 200. Default value: 30. | 20 |
ProductCode | string | No | The abbreviation of the Alibaba Cloud service name. Note
For more information, see Alibaba Cloud services that support Quota Center.
| ecs |
AlarmName | string | No | The name of the alert. | rules |
QuotaActionCode | string | No | The ID of the quota. Note
The ProductCode parameter is required if you specify this parameter.
| q_hvnoqv |
QuotaDimensions | 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 |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 2,
"QuotaAlarms": [
{
"ThresholdPercent": 80,
"ThresholdType": "used",
"QuotaDimensions": {
"regionId": "cn-hangzhou"
},
"CreateTime": "2020-11-27T07:23:34Z",
"QuotaActionCode": "q_hvnoqv",
"AlarmName": "rules\n",
"NotifyTarget": "accountContact",
"NotifyChannels": [
"sms"
],
"QuotaUsage": 73,
"QuotaValue": 200,
"AlarmId": "a2efa7fc-832f-47bb-8054-39e28012****",
"Threshold": 160,
"ProductCode": "config",
"WebHook": "https://www.aliyun.com/webhook",
"ExceedThreshold": false
}
],
"NextToken": "1",
"RequestId": "87F3B755-3BD2-4C76-B36A-93247002918C",
"MaxResults": 1
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history