获取告警策略列表
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListQuotaAlarmRules | 要执行的操作,取值:ListQuotaAlarmRules。 |
Version | String | 是 | 2022-07-01 | API的版本,取值:2022-07-01。 |
ProviderCode | String | 否 | iam | 服务方code |
QuotaCode | String | 否 | policy | 配额code |
Dimensions | Array of Object | 否 | [{"Name":"region_code","Value":""}] | 配额维度 |
QuotaType | String | 否 | normal | 配额类型 |
RuleName | String | 否 | rule1 | 规则名 |
RuleNameSearchKeyWord | String | 否 | rule1 | RuleName搜索的关键词 |
NextToken | String | 否 | 100 | 分页参数 |
MaxResults | Integer | 否 | 10 | 分页参数 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
QuotaAlarmRuleList | Array of Object | [{"RuleID":"1917140323878297600","RuleName":"test1","ProviderCode":"iam","ProductName":"平台服务","QuotaCode":"policy","QuotaType":"normal","Description":"","Dimensions":"[{"Name":"region_code","Value":""}]","AlarmType":"usage","Threshold":"80","SilenceTime":60,"EnableState":"enable","Statistics":"avg","MetricUnit":"Count","CreatedTime":"2025-04-29 16:54:07","UpdatedTime":"2025-04-29 16:55:15"}] | 配额告警规则 |
NextToken | String | 100 | 分页参数 |
http://open.volcengineapi.com/?Version=2022-07-01&Action=ListQuotaAlarmRules &MaxResults=10 &NextToken=7 &QuotaCode=quota_test
{ "ResponseMetadata": { "RequestId": "2022122212573081DB52B1D061E5B89F47" }, "Result": { "QuotaAlarmRuleList": [ { "RuleID": "1603382028890275840", "RuleName": "策略名1", "ProviderCode": "platformServices", "ProductName": "平台服务", "QuotaCode": "quota_test", "QuotaType": "normal", "Description": "", "Dimensions": "[{\"Name\":\"region_code\",\"Value\":\"\"}]", "AlarmType": "usage", "Threshold": "15", "SilenceTime": 30, "ReportWays": [ "Mail", "Sms", "Inmail" ], "EnableState": "enable", "Statistics": "avg", "MetricUnit": "Count", "CreatedTime": "2022-12-15 21:30:40", "UpdatedTime": "2022-12-21 12:10:56" }, { "RuleID": "1605781619627524096", "RuleName": "策略名2", "ProviderCode": "platformServices", "ProductName": "平台服务", "QuotaCode": "quota_test", "QuotaType": "normal", "Description": "", "Dimensions": "[{\"Name\":\"region_code\",\"Value\":\"cn-exclusive-test1\"}]", "AlarmType": "usage", "Threshold": "35", "SilenceTime": 60, "ReportWays": [ "Sms" ], "EnableState": "enable", "Statistics": "avg", "MetricUnit": "Count", "CreatedTime": "2022-12-22 12:25:47", "UpdatedTime": "2022-12-22 12:25:47" } ], "NextToken": "" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
400 | EntityNotExist | 操作对象不存在 |
400 | InvalidParameter | 无效参数 |
500 | ServiceFailure | 服务错误 |