ns1_apikey

Provides a NS1 Api Key resource. This can be used to create, modify, and delete api keys.

Example Usage

resource "ns1_team" "example" {
  name = "Example team"
}

resource "ns1_apikey" "example" {
  name  = "Example key"
  teams = ["${ns1_team.example.id}"]

  permissions = {
    dns_view_zones       = false
    account_manage_users = false
  }
}

Argument Reference

The following arguments are supported:

  • name - (Required) The free form name of the apikey.
  • key - (Required) The apikeys authentication token.
  • teams - (Required) The teams that the apikey belongs to.
  • permissions - (Optional) The allowed permissions of the apikey. Permissions documented below.

Permissions (permissions) support the following:

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