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 "alladministrators" {
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 to 100
.The following attributes are exported:
teams
- A list of existing projects in your Azure DevOps Organization with details about every project which includes:
project_id
- Project identifier.name
- Team name.description
- Team description.administrators
- List of subject descriptors for administrators
of the team.members
- List of subject descriptors for members
of the team.