调用ListQuotaAlarms接口查询配额用量告警列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
NextToken | string | 否 | 用来标记开始读取数据的位置。 说明不设置该参数,表示从头开始。 | 1 |
MaxResults | integer | 否 | 本次读取的最大记录条数。 取值范围:1~200。默认值:30。 | 20 |
ProductCode | string | 否 | 云服务名称缩写。 说明详情请参见支持配额中心的云服务。 | ecs |
AlarmName | string | 否 | 配额用量告警名称。 | 规则创建数量告警 |
QuotaActionCode | string | 否 | 配额ID。 | q_hvnoqv |
QuotaDimensions | array | 否 | 配额维度。 | |
object | 否 | 配额维度。 | ||
Key | string | 否 | 配额维度的Key。 说明N的取值范围取决于对应云服务支持的维度个数。 | regionId |
Value | string | 否 | 配额维度的Value。 说明N的取值范围取决于对应云服务支持的维度个数。 | cn-hangzhou |
返回参数
示例
请求示例
http(s)://[Endpoint]/?Action=ListQuotaAlarms
&<公共请求参数>
正常返回示例
JSON
格式
{
"TotalCount": 2,
"QuotaAlarms": [
{
"AlarmId": "a2efa7fc-832f-47bb-8054-39e28012****",
"QuotaActionCode": "q_hvnoqv",
"NotifyChannels": [
"sms"
],
"QuotaValue": 200,
"QuotaDimensions": {},
"AlarmName": "规则创建数量告警",
"ProductCode": "config",
"NotifyTarget": "accountContact",
"CreateTime": "2020-11-27T07:23:34Z",
"QuotaUsage": 73,
"ExceedThreshold": false,
"Threshold": 160
},
{
"AlarmId": "3f42ae59-edd0-44ad-aed1-b7aa36ff****",
"QuotaActionCode": "q_elastic-network-interfaces",
"NotifyChannels": [
"sms",
"email"
],
"QuotaValue": 50000,
"QuotaDimensions": {
"regionId": "cn-hangzhou"
},
"AlarmName": "test123",
"ProductCode": "ecs",
"NotifyTarget": "accountContact",
"CreateTime": "2020-11-27T06:51:35Z",
"QuotaUsage": 1,
"ExceedThreshold": false,
"Threshold": 5
}
],
"RequestId": "87F3B755-3BD2-4C76-B36A-93247002918C",
"MaxResults": 2
}
XML
格式
<ListQuotaAlarmsResponse>
<TotalCount>2</TotalCount>
<QuotaAlarms>
<AlarmId>a2efa7fc-832f-47bb-8054-39e28012****</AlarmId>
<QuotaActionCode>q_hvnoqv</QuotaActionCode>
<NotifyChannels>sms</NotifyChannels>
<QuotaValue>200</QuotaValue>
<QuotaDimensions/>
<AlarmName>规则创建数量告警</AlarmName>
<ProductCode>config</ProductCode>
<NotifyTarget>accountContact</NotifyTarget>
<CreateTime>2020-11-27T07:23:34Z</CreateTime>
<QuotaUsage>73</QuotaUsage>
<ExceedThreshold>false</ExceedThreshold>
<Threshold>160</Threshold>
</QuotaAlarms>
<QuotaAlarms>
<AlarmId>3f42ae59-edd0-44ad-aed1-b7aa36ff****</AlarmId>
<QuotaActionCode>q_elastic-network-interfaces</QuotaActionCode>
<NotifyChannels>sms</NotifyChannels>
<NotifyChannels>email</NotifyChannels>
<QuotaValue>50000</QuotaValue>
<QuotaDimensions>
<regionId>cn-hangzhou</regionId>
</QuotaDimensions>
<AlarmName>test123</AlarmName>
<ProductCode>ecs</ProductCode>
<NotifyTarget>accountContact</NotifyTarget>
<CreateTime>2020-11-27T06:51:35Z</CreateTime>
<QuotaUsage>1</QuotaUsage>
<ExceedThreshold>false</ExceedThreshold>
<Threshold>5</Threshold>
</QuotaAlarms>
<RequestId>87F3B755-3BD2-4C76-B36A-93247002918C</RequestId>
<MaxResults>2</MaxResults>
</ListQuotaAlarmsResponse>
错误码
访问错误中心查看更多错误码。