You need to enable JavaScript to run this app.
文档中心
复制全文
下载 pdf
配额告警
ListQuotaAlarmRules - 获取告警策略列表
复制全文
下载 pdf
ListQuotaAlarmRules - 获取告警策略列表

获取告警策略列表

调试

请求参数

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

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

分页参数

请求示例

GET /?Action=ListQuotaAlarmRules&Version=2022-07-01 HTTP/1.1
Host: quota.volcengineapi.com
X-Date: 20251225T130003Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251225/cn-beijing/quota/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f


返回示例

{
    "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.

服务错误

最近更新时间:2025.12.29 11:25:49
这个页面对您有帮助吗?
有用
有用
无用
无用