You need to enable JavaScript to run this app.
导航
SetStateOfRulesByIds
最近更新时间:2024.06.27 14:36:24首次发布时间:2022.10.09 10:39:16

调用SetStateOfRulesByIds接口启用、停用告警策略。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=SetStateOfRulesByIds&Version=2018-01-01
ServiceName : Volc_Observe
Region : cn-beijing 
AccessKey : xxx
SecretKey : xxx

调试

请求参数

Query

参数类型是否必选示例值描述
ActionStringSetStateOfRulesByIds接口名称。当前 API 的名称为 SetStateOfRulesByIds
VersionString2018-01-01接口版本。当前 API 的版本为 2018-01-01

Body

参数类型是否必选示例值描述

Ids

Array of String

["155435238945******"]

要停用或待启用的告警策略ID。
是一个数组。

State

String

enable

告警策略的设置状态。

  • disable:停用
  • enable:启用

返回参数

参数类型示例值描述
DataArray of String[]返回的数据内容,空占位符。

请求示例

POST https://open.volcengineapi.com?Action=SetStateOfRulesByIds&Version=2018-01-01
ServiceName: Volc_Observe
Region: cn-beijing
AccessKey: xxx
SecretKey: xxx
{
  "Ids": ["155435238945******"],  
  "State": "enable"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "",
        "Action": "SetStateOfRulesByIds",
        "Version": "2018-01-01",
        "Service": "",
        "Region": ""
    },
    "Result": {
        "Data": []
    }
}

错误码

本接口无特有的错误码。更多信息请参见错误码