» 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 = "test@test.com"
    }
  }
}

» 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.