Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.74 KB

data_teams.html.markdown

File metadata and controls

61 lines (42 loc) · 1.74 KB
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

Data Source: azuredevops_team

Use this data source to access information about existing Teams in a Project or globally within an Azure DevOps organization

Example Usage

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
}

Argument Reference

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.

Attributes Reference

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 for administrators of the team.
    • members - List of subject descriptors for members of the team.

Relevant Links

PAT Permissions Required

  • vso.project: Grants the ability to read projects and teams.