A team is a collection of users and escalation policies that represent a group of people within an organization.
The account must have the teams
ability to use the following resource.
resource "pagerduty_team" "parent" {
name = "Product Development"
description = "Product and Engineering"
}
resource "pagerduty_team" "example" {
name = "Engineering"
description = "All engineering"
parent = pagerduty_team.parent.id
}
The following arguments are supported:
name
- (Required) The name of the group.description
- (Optional) A human-friendly description of the team.
If not set, a placeholder of "Managed by Terraform" will be set.parent
- (Optional) ID of the parent team. This is available to accounts with the Team Hierarchy feature enabled. Please contact your account manager for more information.default_role
- (Optional) The team is private if the value is "none", or public if it is "manager" (the default permissions for a non-member of the team are either "none", or their base role up until "manager").The following attributes are exported:
id
- The ID of the team.html_url
- URL at which the entity is uniquely displayed in the Web appTeams can be imported using the id
, e.g.
$ terraform import pagerduty_team.main PLBP09X