Use this data source to get a list of Teams in an Organization and a map of their IDs. The Teams returned may be a subset of all teams in an Organization based on the permissions of the API token.
data "tfe_teams" "foo" {
organization = "my-org-name"
}
The following arguments are supported:
organization
- (Optional) Name of the organization.In addition to all arguments above, the following attributes are exported:
id
- Name of the organization.names
- A list of team names in an organization.ids
- A map of team names in an organization and their IDs.