You need to enable JavaScript to run this app.
Volcengine Managed Service for Prometheus

Volcengine Managed Service for Prometheus

Copy page
Download PDF
Alerting silence policies
EnableSilencePolicies
Copy page
Download PDF
EnableSilencePolicies
Enable an alert silence policy.​
Request descriptions​
Volcengine Managed Service for Prometheus has been deployed in multiple regions worldwide, aiming to provide you with an experience of higher stability and lower latency. You can choose an access point that is the most optimal for the region of your services according to the Service addresses document.​
  • Request method: POST​
  • Request URL: https://vmp.cn-beijing.volcengineapi.com?Action=EnableSilencePolicies&Version=2021-03-03​
Request parameters​
​
Parameter​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
EnableSilencePolicies​
API name. The API name is EnableSilencePolicies.​
Version​
String​
Yes​
2021-03-03​
API version. The API version is 2021-03-03.​
Ids​
Array of String​
Yes​
["e28ae750-bbb8-4ff4-abf4-1e0e0f88808c"]​
Alert silence policy ID. The IDs of alert silence policies can be obtained through API ListSilencePolicies.​
​
Sample requests​
​
POST https://vmp.cn-beijing.volcengineapi.com?Action=EnableSilencePolicies&Version=2021-03-03​
Content-Type: application/json​
{​
"Ids": [​
"e28ae750-bbb8-4ff4-abf4-1e0e0f88808c"​
]​
}​
​
Response parameters​
​
Parameter​
Type​
Sample value​
Description​
SuccessfulItems​
Array of String​
["e28ae750-bbb8-4ff4-abf4-1e0e0f88808c"]​
A list of IDs for alert silence policies that were enabled successfully.​
UnsuccessfulItems​
Array of UnsuccessfulItem​
-​
A list of IDs for alert silence policies that failed to be enabled.​
​
UnsuccessfulItem​
​
Parameter​
Type​
Sample value​
Description​
Id​
String​
e28ae750-bbb8-4ff4-abf4-1e0e0f88808c​
IDs of objects on which actions failed.​
Error​
-​
Reason for failed actions.​
​
UnsuccessfulItemError​
​
Parameter​
Type​
Sample value​
Description​
Code​
String​
NotFound.Ids​
Error code.​
Message​
String​
The specified Contact abc is not found.​
Error message.​
Data​
JSON Map​
-​
Error metadata.​
​
Sample responses​
​
HTTP/1.1: 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "EnableSilencePolicies",​
"Version": "2021-03-03",​
"Service": "vmp",​
"Region": "cn-beijing"​
},​
"Result": {​
"SuccessfulItems": [​
"e28ae750-bbb8-4ff4-abf4-1e0e0f88808c"​
],​
"UnsuccessfulItems": [​
{​
"Id": "e28ae750-bbb8-4ff4-abf4-1e0e0f88808c",​
"Error": {​
"Code": "NotFound.Ids",​
"Message": "The specified Contact abc is not found."​
}​
}​
]​
}​
}​
​
Error codes​
The error codes for current API only are listed in the table below. See Public error codes to view error codes for any APIs.​
​
HTTP status codes​
Error codes​
Error message​
Description​
400​
MissingParameter.{{parameter}}​
The required parameter {{parameter}} is missing.​
Missing required parameters.​
403​
ProductUnsubscribed​
You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service​
The account is not subscribed to the VMP Service.​
404​
NotFound.Id​
The specified Contact/ContactGroup {{Id}} is not found.​
The specified contact person/group was not found.​
​
​
Last updated: 2026.07.10 11:37:28