Data Source : azuredevops_serviceendpoint_github

Use this data source to access information about an existing GitHub service Endpoint.

Example Usage

By Service Endpoint ID

data "azuredevops_project" "sample" {
  name = "Sample Project"
}

data "azuredevops_serviceendpoint_github" "serviceendpoint" {
  project_id          = data.azuredevops_project.sample.id
  service_endpoint_id = "00000000-0000-0000-0000-000000000000"
}

output "service_endpoint_name" {
  value = data.azuredevops_serviceendpoint_github.serviceendpoint.service_endpoint_name
}

By Service Endpoint Name

data "azuredevops_project" "sample" {
  name = "Sample Project"
}

data "azuredevops_serviceendpoint_github" "serviceendpoint" {
  project_id            = data.azuredevops_project.sample.id
  service_endpoint_name = "Example-Service-Endpoint"
}

output "service_endpoint_id" {
  value = data.azuredevops_serviceendpoint_github.serviceendpoint.id
}

Arguments Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments list above - the following Attributes are exported: