pagerduty_team

Use this data source to get information about a specific team that you can use for other PagerDuty resources.

Example Usage

data "pagerduty_user" "me" {
  email = "[email protected]"
}

data "pagerduty_team" "devops" {
  name = "devops"
}

resource "pagerduty_escalation_policy" "foo" {
  name      = "DevOps Escalation Policy"
  num_loops = 2

  teams = ["${data.pagerduty_team.devops}"]

  rule {
    escalation_delay_in_minutes = 10

    target {
      type = "user"
      id   = "${data.pagerduty_user.me.id}"
    }
  }
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the team to find in the PagerDuty API.

Attributes Reference

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