Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.69 KB

data_projects.html.markdown

File metadata and controls

60 lines (41 loc) · 1.69 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_projects
Use this data source to access information about a existing Projects within Azure DevOps.

Data Source: azuredevops_projects

Use this data source to access information about existing Projects within Azure DevOps.

Example Usage

data "azuredevops_projects" "test" {
  project_name = "contoso"
  state        = "wellFormed"
}

output "project_id" {
  value = data.azuredevops_projects.test.projects.*.project_id
}

output "project_name" {
  value = data.azuredevops_projects.test.projects.*.name
}

output "project_url" {
  value = data.azuredevops_projects.test.projects.*.project_url
}

output "state" {
  value = data.azuredevops_projects.test.projects.*.state
}

Argument Reference

The following arguments are supported:

  • project_name - (Optional) Name of the Project, if not specified all projects will be returned.

  • state - (Optional) State of the Project, if not specified all projects will be returned. Valid values are all, deleting, new, wellFormed, createPending, unchanged,deleted.

DataSource without specifying any arguments will return all projects.

Attributes Reference

The following attributes are exported:

  • projects - A list of existing projects in your Azure DevOps Organization with details about every project which includes:

    • project_id - Project identifier.
    • name - Project name.
    • project_url - Url to the full version of the object.
    • state - Project state.

Relevant Links