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 "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 to100
.
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.- `id - Team identifier
name
- Team name.description
- Team description.administrators
- List of subject descriptors foradministrators
of the team.members
- List of subject descriptors formembers
of the team.
- vso.project: Grants the ability to read projects and teams.