|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "grafana_alert_notification Resource - terraform-provider-grafana" |
| 4 | +subcategory: "Deprecated" |
| 5 | +description: |- |
| 6 | + This resource is used to configure the legacy alerting system which has been replaced by the unified alerting system https://grafana.com/docs/grafana/latest/alerting/ in Grafana 9+. See resources in the Alerting section https://registry.terraform.io/providers/grafana/grafana/latest/docs for info on how to configure alerting with Terraform. |
| 7 | + * HTTP API https://grafana.com/docs/grafana/latest/developers/http_api/alerting_notification_channels/ |
| 8 | + |> Deprecated: This resource is used to configure the legacy alerting system which has been replaced by the unified alerting system https://grafana.com/docs/grafana/latest/alerting/ in Grafana 9+. See resources in the Alerting section https://registry.terraform.io/providers/grafana/grafana/latest/docs for info on how to configure alerting with Terraform. |
| 9 | +--- |
| 10 | + |
| 11 | +# grafana_alert_notification (Resource) |
| 12 | + |
| 13 | +This resource is used to configure the legacy alerting system which has been replaced by the [unified alerting system](https://grafana.com/docs/grafana/latest/alerting/) in Grafana 9+. See resources in the [Alerting section](https://registry.terraform.io/providers/grafana/grafana/latest/docs) for info on how to configure alerting with Terraform. |
| 14 | +* [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_notification_channels/) |
| 15 | + |
| 16 | +|> Deprecated: This resource is used to configure the legacy alerting system which has been replaced by the [unified alerting system](https://grafana.com/docs/grafana/latest/alerting/) in Grafana 9+. See resources in the [Alerting section](https://registry.terraform.io/providers/grafana/grafana/latest/docs) for info on how to configure alerting with Terraform. |
| 17 | + |
| 18 | +## Example Usage |
| 19 | + |
| 20 | +```terraform |
| 21 | +resource "grafana_alert_notification" "email_someteam" { |
| 22 | + name = "Email that team" |
| 23 | + type = "email" |
| 24 | + is_default = false |
| 25 | + send_reminder = true |
| 26 | + frequency = "24h" |
| 27 | +
|
| 28 | + settings = { |
| 29 | + |
| 30 | + uploadImage = "false" |
| 31 | + } |
| 32 | +} |
| 33 | +``` |
| 34 | + |
| 35 | +<!-- schema generated by tfplugindocs --> |
| 36 | +## Schema |
| 37 | + |
| 38 | +### Required |
| 39 | + |
| 40 | +- `name` (String) The name of the alert notification channel. |
| 41 | +- `type` (String) The type of the alert notification channel. |
| 42 | + |
| 43 | +### Optional |
| 44 | + |
| 45 | +- `disable_resolve_message` (Boolean) Whether to disable sending resolve messages. Defaults to `false`. |
| 46 | +- `frequency` (String) Frequency of alert reminders. Frequency must be set if reminders are enabled. Defaults to ``. |
| 47 | +- `is_default` (Boolean) Is this the default channel for all your alerts. Defaults to `false`. |
| 48 | +- `secure_settings` (Map of String, Sensitive) Additional secure settings, for full reference lookup [Grafana Supported Settings documentation](https://grafana.com/docs/grafana/latest/administration/provisioning/#supported-settings). |
| 49 | +- `send_reminder` (Boolean) Whether to send reminders for triggered alerts. Defaults to `false`. |
| 50 | +- `settings` (Map of String) Additional settings, for full reference see [Grafana HTTP API documentation](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_notification_channels/). |
| 51 | +- `uid` (String) Unique identifier. If unset, this will be automatically generated. |
| 52 | + |
| 53 | +### Read-Only |
| 54 | + |
| 55 | +- `id` (String) The ID of this resource. |
| 56 | + |
| 57 | +## Import |
| 58 | + |
| 59 | +Import is supported using the following syntax: |
| 60 | + |
| 61 | +```shell |
| 62 | +terraform import grafana_alert_notification.alert_notification_name {{alert_notification_id}} |
| 63 | +``` |
0 commit comments