github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/opsgenie/r/user.html.markdown (about) 1 --- 2 layout: "opsgenie" 3 page_title: "OpsGenie: opsgenie_user" 4 sidebar_current: "docs-opsgenie-resource-user" 5 description: |- 6 Manages a User within OpsGenie. 7 --- 8 9 # opsgenie\_user 10 11 Manages a User within OpsGenie. 12 13 ## Example Usage 14 15 ``` 16 resource "opsgenie_user" "test" { 17 username = "user@domain.com" 18 full_name = "Cookie Monster" 19 role = "User" 20 locale = "en_US" 21 timezone = "America/New_York" 22 } 23 ``` 24 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `username` - (Required) The email address associated with this user. OpsGenie defines that this must not be longer than 100 characters. 30 31 * `full_name` - (Required) The Full Name of the User. 32 33 * `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. 34 35 * `locale` - (Optional) Location information for the user. Please look at [Supported Locale Ids](https://www.opsgenie.com/docs/miscellaneous/supported-locales) for available locales - Defaults to "en_US". 36 37 * `timezone` - (Optional) Timezone information of the user. Please look at [Supported Timezone Ids](https://www.opsgenie.com/docs/miscellaneous/supported-timezone-ids) for available timezones - Defaults to "America/New_York". 38 39 ## Attributes Reference 40 41 The following attributes are exported: 42 43 * `id` - The ID of the OpsGenie User. 44 45 ## Import 46 47 Users can be imported using the `id`, e.g. 48 49 ``` 50 $ terraform import opsgenie_user.user da4faf16-5546-41e4-8330-4d0002b74048 51 ```