Queries quota alerts.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
quotas:ListQuotaAlarms | get |
|
| none |
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 | array<object> | No | The quota dimensions. | |
object | No | The quota dimension. | ||
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
{
"MaxResults": 1,
"NextToken": "1",
"QuotaAlarms": [
{
"AlarmId": "a2efa7fc-832f-47bb-8054-39e28012****",
"AlarmName": "rules\n",
"CreateTime": "2020-11-27T07:23:34Z",
"ExceedThreshold": false,
"NotifyChannels": [
"sms"
],
"NotifyTarget": "accountContact",
"ProductCode": "config",
"QuotaActionCode": "q_hvnoqv",
"QuotaDimensions": {
"regionId": "cn-hangzhou"
},
"QuotaUsage": 73,
"QuotaValue": 200,
"Threshold": 160,
"ThresholdPercent": 80,
"ThresholdType": "used",
"WebHook": "https://www.aliyun.com/webhook"
}
],
"RequestId": "87F3B755-3BD2-4C76-B36A-93247002918C",
"TotalCount": 2
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|