layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_teams |
Use this data source to access information about existing Teams in a Project or globally within an Azure DevOps organization |
Use this data source to access information about existing Teams in a Project or globally within an Azure DevOps organization
data "azuredevops_teams" "example" {
}
output "project_id" {
value = data.azuredevops_teams.example.teams.*.project_id
}
output "name" {
value = data.azuredevops_teams.example.teams.*.name
}
output "all_administrators" {
value = data.azuredevops_teams.example.teams.*.administrators
}
output "administrators" {
value = data.azuredevops_teams.example.teams.*.members
}
The following arguments are supported:
-
project_id
- (Optional) The Project ID. If no project ID all teams of the organization will be returned. -
top
- (Optional) The maximum number of teams to return. Defaults to100
.
The following attributes are exported:
teams
- A list ofteams
blocks as documented below. A list of existing projects in your Azure DevOps Organization with details about every project which includes:
A teams
block supports the following:
-
project_id
- The ID of the Project. -
id
- The ID of the Team. -
name
- The name of the team. -
description
- Team description. -
administrators
- List of subject descriptors foradministrators
of the team. -
members
- List of subject descriptors formembers
of the team.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 30 minute) Used when retrieving the Teams.
- vso.project: Grants the ability to read projects and teams.