layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_area |
Use this data source to access information about an existing Area (Component) within Azure DevOps. |
Use this data source to access information about an existing Area (Component) within Azure DevOps.
#---------------------------------------------------------------------------
# Azure DevOps project
resource "azuredevops_project" "project" {
project_name = "Sample Project"
work_item_template = "Agile"
version_control = "Git"
visibility = "private"
description = "Managed by Terraform"
}
data "azuredevops_area" "area" {
project_id = azuredevops_project.project.id
path = "/"
fetch_children = "false"
}
The following arguments are supported:
project_id
- (Required) The project ID.path
- (Optional) The path to the Area; Format: URL relative; if omitted, or value"/"
is used, the root Area will be returnedfetch_children
- (Optional) Read children nodes, Depth: 1, Default:true
The following attributes are exported:
id
- The id of the Area nodename
- The name of the Area nodehas_children
- Indicator if an Area node has child nodeschildren
- A list ofchildren
blocks as defined below, empty ifhas_children == false
A children
block supports the following:
id
- The id of the child Area nodename
- The name of the child Area nodeproject_id
- The project ID of the child Area nodepath
- The complete path (in relative URL format) of the child Areahas_children
- Indicator if the child Area node has child nodes
- Project & Team: vso.work - Grants the ability to read work items, queries, boards, area and iterations paths, and other work item tracking related metadata. Also grants the ability to execute queries, search work items and to receive notifications about work item events via service hooks.