Skip to content

Latest commit

 

History

History
67 lines (41 loc) · 1.96 KB

git_repository.html.markdown

File metadata and controls

67 lines (41 loc) · 1.96 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_git_repository
Use this data source to access information about an existing Git Repository within Azure DevOps.

Data Source: azuredevops_git_repository

Use this data source to access information about a single (existing) Git Repository within Azure DevOps. To read information about multiple Git Repositories use the data source azuredevops_git_repositories

Example Usage

data "azuredevops_project" "example" {
  name = "Example Project"
}

# Load a specific Git repository by name
data "azuredevops_git_repository" "example-single-repo" {
  project_id = data.azuredevops_project.example.id
  name       = "Example Repository"
}

Argument Reference

The following arguments are supported:

  • project_id - (Required) The ID of project to list Git repositories

  • name - (Required) The Name of the Git repository to retrieve

Attributes Reference

The following attributes are exported:

  • id - The ID of the Git repository.

  • name - The name of the Git repository.

  • url - The details REST API endpoint for the Git Repository.

  • ssh_url - SSH Url to clone the Git repository

  • web_url - The Url of the Git repository web view

  • remote_url - HTTPS Url to clone the Git repository

  • project_id - Project identifier to which the Git repository belongs.

  • size - Compressed size (bytes) of the repository.

  • default_branch - The ref of the default branch.

  • disabled - Indicates whether the repository is disabled.

Relevant Links

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 30 minute) Used when retrieving the Git Repository.