Use this data source to get information about a specific tag that you can use to assign to users, teams, and escalation_policies.
data "pagerduty_user" "me" {
email = "me@example.com"
}
data "pagerduty_tag" "devops" {
label = "devops"
}
resource "pagerduty_tag_assignment" "foo" {
tag_id = data.pagerduty_tag.devops.id
entity_id = data.pagerduty_user.me.id
entity_type = "users"
}
The following arguments are supported:
label
- (Required) The label of the tag to find in the PagerDuty API.id
- The ID of the found team.