852 B
852 B
layout | page_title | sidebar_current | description |
---|---|---|---|
opsgenie | OpsGenie: opsgenie_user | docs-opsgenie-datasource-user | Gets information about a specific user within OpsGenie |
opsgenie_user
Use this data source to get information about a specific user within OpsGenie.
Example Usage
data "opsgenie_user" "cookie_monster" {
username = "me@cookie-monster.com"
}
resource "opsgenie_team" "test" {
name = "cookieeaters"
member {
username = "${data.opsgenie_user.cookie_monster.username}"
role = "${data.opsgenie_user.cookie_monster.role}"
}
}
Argument Reference
The following arguments are supported:
username
- (Required) The username (email) to use to find a user in OpsGenie.
Attributes Reference
full_name
- The full name of the found user.role
- The role of the found user.