You need to enable JavaScript to run this app.
导航
ListQuotaAlarmRules - 查询配额告警
最近更新时间:2022.12.27 10:18:24首次发布时间:2022.12.27 10:18:24

请求参数

接口参数

参数类型位置是否必填描述
ActionstringQueryListQuotaAlarmRules
VersionstringQuery2022-07-01

业务变量参数

参数类型位置是否必填描述
ProviderCodestringBody产品提供方
QuotaCodestringBody配额名称

Dimensions

string

Body

配额维度

[
    {
        "Name":"region_code",
        "Value":"cn-north"
    },
    {
        "Name":"charge_type",
        "Value":"PostPaid"
    },
    {
        "Name":"zone_id",
        "Value":"cn-north-a"
    }
]
RuleNamestringBody告警策略名
NextTokenstringBody分页参数
MaxResultsintBody最多一次返回数量,默认10

请求示例

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": ""
    }
}