ns1_notifylist

Provides a NS1 Notify List resource. This can be used to create, modify, and delete notify lists.

Example Usage

resource "ns1_notifylist" "nl" {
  name = "my notify list"
  notifications = {
    type = "webhook"
    config = {
      url = "http://www.mywebhook.com"
    }
  }

  notifications = {
    type = "email"
    config = {
      email = "[email protected]"
    }
  }
}

Argument Reference

The following arguments are supported:

  • name - (Required) The free-form display name for the notify list.
  • notifications - (Optional) A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below.

Notify List Notifiers (notifications) support the following:

  • type - (Required) The type of notifier. Available notifiers are indicated in /notifytypes endpoint.
  • config - (Required) Configuration details for the given notifier type.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/ns1/r/notifylist.html