You need to enable JavaScript to run this app.
Cloud Monitor

Cloud Monitor

Copy page
Download PDF
Alert policies
SetStateOfRulesByIds
Copy page
Download PDF
SetStateOfRulesByIds
Enable or disable an alert policy.​
Request descriptions​
  • Request method: POST​
  • Request URL: https://cloudmonitor.cn-beijing.volcengineapi.com?Action=SetStateOfRulesByIds&Version=2018-01-01​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameter​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
SetStateOfRulesByIds​
The name of the API. The API name is SetStateOfRulesByIds.​
Version​
String​
Yes​
2018-01-01​
The API version. The API version is 2018-01-01.​
Ids​
Array of String​
Yes​
["155435238945******"]​
Alert policy ID. The data type is array. Separate multiple elements with comma (,).​
State​
String​
Yes​
enable​
Alert policy status. Values:​
  • disable: Disabled​
  • enable: Enabled​
ProjectName​
String​
No​
project_1​
Name of the project to which the alert policy belongs. If no project is specified, it defaults to the "default" project. For more project introductions, refer to Managing projects.​
​
Sample request​
​
POST https://cloudmonitor.cn-beijing.volcengineapi.com?Action=SetStateOfRulesByIds&Version=2018-01-01​
Content-Type: application/json​
{​
"Ids": [​
"155435238945******"​
],​
"ProjectName": "project_1",​
"State": "enable"​
}​
​
Response parameters​
​
Parameter​
Type​
Sample value​
Description​
Data​
Array of String​
[]​
Response data content. It is an empty placeholder.​
​
Sample response​
​
{​
"ResponseMetadata": {​
"Action": "SetStateOfRulesByIds",​
"Region": "cn-beijing",​
"Service": "cloudmonitor",​
"Version": "2018-01-01",​
"RequestId": "20230604110420****100232280022D31"​
},​
"Result": {​
"Data": [​
""​
]​
}​
}​
​
Error codes​
There are no error codes specific to this API. For more information, see Error codes.​
​
​
Last updated: 2026.07.10 14:02:22