Manages Grafana Alerting message templates.
This resource requires Grafana 9.1.0 or later.
resource "grafana_message_template" "my_template" {
name = "My Reusable Template"
template = "{{define \"My Reusable Template\" }}\n template content\n{{ end }}"
}
name
(String) The name of the message template.template
(String) The content of the message template.disable_provenance
(Boolean) Allow modifying the message template from other sources than Terraform or the Grafana API. Defaults to false
.org_id
(String) The Organization ID. If not set, the Org ID defined in the provider block will be used.id
(String) The ID of this resource.Import is supported using the following syntax:
terraform import grafana_message_template.name "{{ name }}"
terraform import grafana_message_template.name "{{ orgID }}:{{ name }}"