github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/pagerduty/d/user.html.markdown (about) 1 --- 2 layout: "pagerduty" 3 page_title: "PagerDuty: pagerduty_user" 4 sidebar_current: "docs-pagerduty-datasource-user" 5 description: |- 6 Get information about a user that you can use for a service integration (e.g Amazon Cloudwatch, Splunk, Datadog). 7 --- 8 9 # pagerduty\_user 10 11 Use this data source to get information about a specific [user][1] that you can use for other Pager Duty resources. 12 13 ## Example Usage 14 15 ```hcl 16 data "pagerduty_user" "me" { 17 email = "me@example.com" 18 } 19 20 resource "pagerduty_escalation_policy" "foo" { 21 name = "Engineering Escalation Policy" 22 num_loops = 2 23 24 rule { 25 escalation_delay_in_minutes = 10 26 27 target { 28 type = "user" 29 id = "${data.pagerduty_user.me.id}" 30 } 31 } 32 } 33 ``` 34 35 ## Argument Reference 36 37 The following arguments are supported: 38 39 * `email` - (Required) The email to use to find a user in the PagerDuty API. 40 41 ## Attributes Reference 42 * `name` - The short name of the found user. 43 44 [1]: https://v2.developer.pagerduty.com/v2/page/api-reference#!/Users/get_users