You need to enable JavaScript to run this app.
导航
ListQuotaAlarmRules - 获取告警策略列表
最近更新时间:2025.05.13 16:50:39首次发布时间:2022.12.27 10:18:24
我的收藏
有用
有用
无用
无用

获取告警策略列表

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
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

%v[%v] not exist

操作对象不存在

400
InvalidParameter

The parameter %v[%v] is invalid.

无效参数

500
ServiceFailure

The request processing has failed because of an unknown error.

服务错误