opsgenie_user

Manages a User within OpsGenie.

Example Usage

resource "opsgenie_user" "test" {
  username  = "[email protected]"
  full_name = "Cookie Monster"
  role      = "User"
  locale    = "en_US"
  timezone  = "America/New_York"
}

Argument Reference

The following arguments are supported:

  • username - (Required) The email address associated with this user. OpsGenie defines that this must not be longer than 100 characters.

  • full_name - (Required) The Full Name of the User.

  • role - (Required) The Role assigned to the User. Either a built-in such as 'Owner', 'Admin' or 'User' - or the name of a custom role.

  • locale - (Optional) Location information for the user. Please look at Supported Locale Ids for available locales - Defaults to "en_US".

  • timezone - (Optional) Timezone information of the user. Please look at Supported Timezone Ids for available timezones - Defaults to "America/New_York".

Attributes Reference

The following attributes are exported:

  • id - The ID of the OpsGenie User.

Import

Users can be imported using the id, e.g.

$ terraform import opsgenie_user.user da4faf16-5546-41e4-8330-4d0002b74048

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