Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 2.71 KB

serviceendpoint_sonarqube.html.markdown

File metadata and controls

75 lines (53 loc) · 2.71 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_serviceendpoint_sonarqube
Manages a SonarQube Server service endpoint within Azure DevOps organization.

azuredevops_serviceendpoint_sonarqube

Manages a SonarQube Server service endpoint within Azure DevOps.

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_sonarqube" "example" {
  project_id            = azuredevops_project.example.id
  service_endpoint_name = "Example SonarQube"
  url                   = "https://sonarqube.my.com"
  token                 = "0000000000000000000000000000000000000000"
  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) URL of the SonarQube server to connect with.

  • token - (Required) The Authentication Token generated through SonarQube (go to My Account > Security > Generate Tokens).


  • description - (Optional) The Service Endpoint description.

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

Timeouts

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

  • create - (Defaults to 2 minutes) Used when creating the SonarQube Server Service Endpoint.
  • read - (Defaults to 1 minute) Used when retrieving the SonarQube Server Service Endpoint.
  • update - (Defaults to 2 minutes) Used when updating the SonarQube Server Service Endpoint.
  • delete - (Defaults to 2 minutes) Used when deleting the SonarQube Server Service Endpoint.

Import

Azure DevOps SonarQube Server Service Endpoint can be imported using the projectID/serviceEndpointID, e.g.

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