Skip to main content
Alerting & Response/Alert Templates
GETAlertingSince 1.0SynchronousAuth Required

GetAlertSilenceTemplate

Retrieve a silence template by its unique identifier

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Path Parameters

Request Inputs

Path Parameters

  • templateIdStringRequired

    Unique identifier of the template to retrieve

Responses

200 OK

On success, this API returns the following response structure.

  • idString

    Unique identifier of the template

    Example: tmpl-001

  • nameString

    Human-readable template name

    Example: Weekly Maintenance

  • descriptionString

    Description of the template purpose

    Example: Suppress non-critical alerts during weekly maintenance

  • matchersList

    Label matchers for the silence scope

    Example: (nested array)

    • keyString

      Label key to match against

      Example: severity

    • valueString

      Label value to match

      Example: warning

    • matcherTypeString

      Match type: exact or regex

      Example: exact

  • recurrenceObject

    Optional recurrence configuration

    • cronString

      Cron expression for recurring silence windows

      Example: 0 2 * * 0

    • durationInteger

      Duration in minutes for each silence window

      Example: 120

    • timezoneString

      Timezone for cron evaluation

      Example: Asia/Shanghai

  • protectP0Boolean

    Whether to protect P0 (critical) alerts from being silenced

    Example: true

  • createdByString

    User who created this template

    Example: admin

  • createdAtString

    Timestamp when the template was created

    Example: 2026-01-15T08:00:00Z

Endpoint

GET/api/v1/alerting/silence-templates/{templateId}

/api/v1/alerting/silence-templates/{templateId}

Operation ID

GetAlertSilenceTemplate

Permalink

Request Example

curl -X GET '{host}/api/v1/alerting/silence-templates/{templateId}' -H 'Authorization: Bearer {token}'

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.

View all change history