Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 2.12 KB

serviceendpoint_gitlab.html.markdown

File metadata and controls

69 lines (46 loc) · 2.12 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_gitlab
Manages a GitLab service endpoint within Azure DevOps organization.

azuredevops_serviceendpoint_gitlab

Manages an GitLab service endpoint within Azure DevOps. Using this service endpoint requires you to install: GitLab Integration

Example Usage

resource "azuredevops_project" "example" {
  name               = "Example Project"
  visibility         = "private"
  version_control    = "Git"
  work_item_template = "Agile"
  description        = "Managed by Terraform"
}

resource "azuredevops_serviceendpoint_gitlab" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "Example GitLab"
  url                   = "https://gitlab.com"
  username              = "username"
  api_token             = "token"
  description           = "Managed by Terraform"
}

Argument Reference

The following arguments are supported:

  • project_id - (Required) The ID of the project.

  • service_endpoint_name - (Required) The Service Endpoint name.

  • url - (Required) The server URL for GitLab. Example: https://gitlab.com.

  • username - (Required) The username used to login to GitLab.

  • api_token - (Required) The API token of the GitLab.

  • description - (Optional) The Service Endpoint description. Defaults to Managed by Terraform.

Attributes Reference

The following attributes are exported:

  • id - The ID of the service endpoint.

  • project_id - The ID of the project.

  • service_endpoint_name - The Service Endpoint name.

Relevant Links

Import

Azure DevOps GitLab Service Endpoint can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID

terraform import azuredevops_serviceendpoint_gitlab.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000