» pagerduty_user
Use this data source to get information about a specific user that you can use for other PagerDuty resources.
» Example Usage
data "pagerduty_user" "me" {
email = "me@example.com"
}
resource "pagerduty_escalation_policy" "foo" {
name = "Engineering Escalation Policy"
num_loops = 2
rule {
escalation_delay_in_minutes = 10
target {
type = "user"
id = "${data.pagerduty_user.me.id}"
}
}
}
» Argument Reference
The following arguments are supported:
-
email
- (Required) The email to use to find a user in the PagerDuty API.