Queries quota alerts.
Debugging
Authorization information
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
To query the abbreviation of an Alibaba Cloud service name, call the ListProducts operation and check the value of ProductCode in the response.
| ecs |
AlarmName | string | No | The name of the alert. | rules |
QuotaActionCode | string | No | The quota ID. Note
| q_hvnoqv |
QuotaDimensions | 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 |
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 |
---|