Skip to content

Latest commit

 

History

History
84 lines (70 loc) · 2.92 KB

File metadata and controls

84 lines (70 loc) · 2.92 KB
page_title flashduty_template Resource - flashduty
subcategory
description Manages a Flashduty notification template.

flashduty_template (Resource)

Manages a Flashduty notification template.

Example Usage

# Basic notification template
resource "flashduty_template" "basic" {
  template_name = "Default Notification"
  team_id       = 6153171266454
  description   = "Default notification template for all channels"

  email        = "Incident: {{.Title}}"
  sms          = "Incident {{.Title}} triggered"
  dingtalk     = "**Incident**: {{.Title}}"
  wecom        = "**Incident**: {{.Title}}"
  feishu       = "**Incident**: {{.Title}}"
  feishu_app   = "**Incident**: {{.Title}}"
  dingtalk_app = "**Incident**: {{.Title}}"
  wecom_app    = "**Incident**: {{.Title}}"
  teams_app    = "**Incident**: {{.Title}}"
  slack_app    = "*Incident*: {{.Title}}"
  zoom         = "Incident: {{.Title}}"
  telegram     = "*Incident*: {{.Title}}"
}

# Team-scoped template
resource "flashduty_template" "team_scoped" {
  template_name = "SRE Team Notification"
  description   = "Custom template for SRE team"
  team_id       = 6153171266454

  email        = "[SRE] Incident: {{.Title}}"
  sms          = "[SRE] Incident {{.Title}} triggered"
  dingtalk     = "**[SRE] Incident**: {{.Title}}"
  wecom        = "**[SRE] Incident**: {{.Title}}"
  feishu       = "**[SRE] Incident**: {{.Title}}"
  feishu_app   = "**[SRE] Incident**: {{.Title}}"
  dingtalk_app = "**[SRE] Incident**: {{.Title}}"
  wecom_app    = "**[SRE] Incident**: {{.Title}}"
  teams_app    = "**[SRE] Incident**: {{.Title}}"
  slack_app    = "*[SRE] Incident*: {{.Title}}"
  zoom         = "[SRE] Incident: {{.Title}}"
  telegram     = "*[SRE] Incident*: {{.Title}}"
}

Schema

Required

  • dingtalk (String) DingTalk bot notification template content.
  • dingtalk_app (String) DingTalk app notification template content.
  • email (String) Email notification template content.
  • feishu (String) Feishu bot notification template content.
  • feishu_app (String) Feishu app notification template content.
  • slack (String) Slack bot notification template content.
  • slack_app (String) Slack app notification template content.
  • sms (String) SMS notification template content.
  • teams_app (String) Microsoft Teams app notification template content.
  • telegram (String) Telegram bot notification template content.
  • template_name (String) The name of the template.
  • wecom (String) WeCom bot notification template content.
  • wecom_app (String) WeCom app notification template content.
  • zoom (String) Zoom bot notification template content.

Optional

  • description (String) The description of the template.
  • team_id (Number) The ID of the team this template belongs to.

Read-Only

  • id (String) The unique identifier of the template.