CreateAlertSilenceTemplate
Create a reusable silence template for recurring maintenance windows
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredHuman-readable template name
Example: Weekly Maintenance
descriptionStringRequiredDescription of the template purpose
Example: Suppress non-critical alerts during weekly maintenance
matchersListRequiredLabel matchers for the silence scope
Example: (nested array)
keyStringLabel key to match against
Example: severity
valueStringLabel value to match
Example: warning
matcherTypeStringMatch type: exact or regex
Example: exact
recurrenceObjectRequiredOptional recurrence configuration
cronStringCron expression for recurring silence windows
Example: 0 2 * * 0
durationIntegerDuration in minutes for each silence window
Example: 120
timezoneStringTimezone for cron evaluation
Example: Asia/Shanghai
createdByStringRequiredUser creating this template
Example: admin
Responses
Endpoint
POST/api/v1/alerting/silence-templates
/api/v1/alerting/silence-templates
Request Example
curl -X POST '{host}/api/v1/alerting/silence-templates' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Weekly Maintenance","description":"Suppress non-critical alerts during weekly maintenance","matchers":"(nested array)","recurrence":{"cron":"0 2 * * 0","duration":120,"timezone":"Asia/Shanghai"},"createdBy":"admin"}'
Response Example
200{
"id": "tmpl-001",
"name": "Weekly Maintenance",
"description": "Suppress non-critical alerts during weekly maintenance",
"matchers": [
{}
],
"recurrence": {},
"protectP0": true,
"createdBy": "admin",
"createdAt": "example"
}Change History
This API has no change history records yet.
