layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_git_repository |
Use this data source to access information about an existing Git Repository within Azure DevOps. |
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
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"
}
The following arguments are supported:
project_id
- (Required) ID of project to list Git repositoriesname
- (Required) Name of the Git repository to retrieve
The following attributes are exported:
id
- Git repository identifier.name
- Git repository name.url
- Details REST API endpoint for the Git Repository.ssh_url
- SSH Url to clone the Git repositoryweb_url
- Url of the Git repository web viewremote_url
- HTTPS Url to clone the Git repositoryproject_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
- Is the repository disabled?