terraform/website/source/docs/providers/pagerduty/d/user.html.markdown

1010 B

layout page_title sidebar_current description
pagerduty PagerDuty: pagerduty_user docs-pagerduty-datasource-user Get information about a user that you can use for a service integration (e.g Amazon Cloudwatch, Splunk, Datadog).

pagerduty_user

Use this data source to get information about a specific user that you can use for other Pager Duty 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.

Attributes Reference

  • name - The short name of the found user.