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
UpdateSilencePolicy
Copy page
Download PDF
UpdateSilencePolicy
Update alert silence policy.​
Request descriptions​
VMP 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 optimal for the region of your services according to the Service addresses document.​
  • Request method: POST​
  • Request address: https://vmp.cn-beijing.volcengineapi.com?Action=UpdateSilencePolicy&Version=2021-03-03​
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​
​
Parameters​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
UpdateSilencePolicy​
The name of the API. The API name is UpdateSilencePolicy.​
Version​
String​
Yes​
2021-03-03​
The API version. The API version is 2021-03-03.​
Id​
String​
Yes​
e28ae750-bbb8-4ff4-abf4-1e0e0f88808c​
Alert silence policy ID.​
You can call the ListSilencePolicies API to query the ID of the alert silence policy.​
Name​
String​
No​
alert-silence-demo​
Name of alert silence policy.​
  • It is a string consisting of 1 to 128 characters.​
  • It can contain Chinese characters, letters, numbers, underscores, and hyphens. Starting with a number or underscore is not allowed.​
  • Duplicate names are not allowed in the same region.​
Description​
String​
No​
This is a description​
Description of alert policy.​
  • It is a string consisting of 1 to 128 characters.​
  • Any utf-8 characters can be used.​
TimeRangeMatchers​
Array of TimeRangeMatcher​
No​
-​
Alert silence time.​
MetricLabelMatchers​
Array of Matcher​
No​
​
Alert event label matchers. At most 32 items are allowed. Items follow an "OR" relationship.​
Different LabelMatchers are evaluated using an "AND" relationship.​
​
TimeRangeMatcher​
​
Parameters​
Type​
Required​
Sample value​
Description​
Date​
String​
No​
2006-01-02 15:04~2006-01-03 14:04​
The time period of the alert silence. Used to activate alert silence within a specified time period.​
Location​
String​
Yes​
Asia/Shanghai​
Time zone.​
PeriodicDate​
Object of PeriodicDate​
No​
-​
The alert silence period. Used to configure the alert silence that takes effect periodically.​
​
Matcher​
​
Parameters​
Type​
Required​
Sample value​
Description​
Matchers​
Array of LabelMatcher​
Yes​
​
Label matchers. Each LabelMatcher array can contain up to 24 items.​
​
PeriodicDate​
​
Parameters​
Type​
Required​
Sample value​
Description​
Time​
String​
No​
20:00~21:12​
Time period. You can specify multiple different time periods separated by commas (,), for example, 20:00~21:12,22:00~23:12. 4 time periods can be configured at most.​
Weekday​
String​
No​
1,3,5​
Specific days within a week. You can specify multiple different time periods with commas (,). For example, 1,3,5 indicates Monday, Wednesday, and Friday of each week. 7 time periods can be configured at most.​
DayOfMonth​
String​
No​
2~3​
Specific days within a month. You can specify multiple different time periods separated by commas (,). For example, 2~3 indicates the 2nd and 3rd day of each month. 10 time periods can be configured at most.​
​
LabelMatcher​
​
Parameters​
Type​
Required​
Sample value​
Description​
Label​
String​
Yes​
app​
Label.​
Value​
String​
Yes​
test​
Label Value.​
Operator​
String​
No​
Equal​
The operator. Possible values:​
  • Equal: Equal​
  • NotEqual: Not equal​
  • RegexpEqual: Equal using a regular expression​
  • RegexpNotEqual: Not equal using a regular expression​
​
Sample request​
​
POST https://vmp.cn-beijing.volcengineapi.com?Action=UpdateSilencePolicy&Version=2021-03-03​
Content-Type: application/json​
{​
"Id": "e28xxxx0-bxxx-4ff4-axx4-1e0xxxx880xx",​
"Name": "alert-silence-demo",​
"Description": "Description",​
"TimeRangeMatchers": [​
{​
"Date": "2006-01-02 15:04~2006-01-03 14:04",​
"Location": "Asia/Shanghai",​
"PeriodicDate": {​
"Time": "20:00~21:12",​
"Weekday": "1,3,5",​
"DayOfMonth": "2~3"​
}​
}​
],​
"MetricLabelMatchers": [​
{​
"Matchers": [​
{​
"Label": "app",​
"Value": "test",​
"Operator": "Equal"​
}​
]​
}​
]​
}
​
Response parameters​
​
Parameters​
Type​
Sample value​
Description​
Id​
String​
e28ae750-bbb8-4ff4-abf4***​
Alert silence policy ID.​
​
Sample response​
​
HTTP/1.1: 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "UpdateSilencePolicy",​
"Version": "2021-03-03",​
"Service": "vmp",​
"Region": "cn-beijing"​
},​
"Result": {​
"Id": "e28ae750-bbb8-4ff4-abf4***"​
}​
}
​
Error code​
The error codes for this API are listed in the table below. For a list of error codes for other APIs, see Public error codes.​
​
HTTP status codes​
Error code​
Error messages​
Descriptions​
400​
InvalidParameter.{{parameter}}​
The specified parameter {{parameter}} is invalid.​
An invalid parameter was found. For example, an invalid workspace name was included in requests.​
400​
MissingParameter.{{parameter}}​
The required parameter {{parameter}} is missing.​
A required parameter is missing.​
403​
ProductUnsubscribed​
You are not subscribed to VMP. Please go to the VMP console web page to subscribe to the service​
The account has 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.​
409​
Conflict.Name​
The specified name conflicts with existing {{resource}}.​
The specified name has already been used by an existing resource.​
​
Last updated: 2026.07.10 11:37:28