» 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 = "me@example.com"
}
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
-
id
- The ID of the found team. -
name
- The name of the found team. -
description
- A description of the found team.