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 = "[email protected]"
}

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.

Attributes Reference

  • name - The short name of the found user.

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