summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authormartenvd <marten.van.dijk@mosadex-ehealth.nl>2022-10-26 14:36:02 +0200
committermartenvd <marten.van.dijk@mosadex-ehealth.nl>2022-10-26 14:36:02 +0200
commit13b88fa3484142f27df6d51d451e3419b5b92806 (patch)
tree9d21dca54d3ccdb047e0cff6747a3d2e7e94d611 /website
parent41d4e3e5b133eff91404969f99ef2ccf1eb7f85a (diff)
azuredevops_serviceendpoint_sonarcloud
Diffstat (limited to 'website')
-rw-r--r--website/azuredevops.erb3
-rw-r--r--website/docs/r/serviceendpoint_sonarcloud.html.markdown58
2 files changed, 61 insertions, 0 deletions
diff --git a/website/azuredevops.erb b/website/azuredevops.erb
index fadad75a..241da55e 100644
--- a/website/azuredevops.erb
+++ b/website/azuredevops.erb
@@ -233,6 +233,9 @@
<a href="/docs/providers/azuredevops/r/serviceendpoint_sonarqube.html">azuredevops_serviceendpoint_sonarqube</a>
</li>
<li>
+ <a href="/docs/providers/azuredevops/r/serviceendpoint_sonarcloud.html">azuredevops_serviceendpoint_sonarcloud</a>
+ </li>
+ <li>
<a href="/docs/providers/azuredevops/r/serviceendpoint_ssh.html">azuredevops_serviceendpoint_ssh</a>
</li>
<li>
diff --git a/website/docs/r/serviceendpoint_sonarcloud.html.markdown b/website/docs/r/serviceendpoint_sonarcloud.html.markdown
new file mode 100644
index 00000000..da839fa1
--- /dev/null
+++ b/website/docs/r/serviceendpoint_sonarcloud.html.markdown
@@ -0,0 +1,58 @@
+---
+layout: "azuredevops"
+page_title: "AzureDevops: azuredevops_serviceendpoint_sonarcloud"
+description: |-
+ Manages the SonarCloud service endpoint within an Azure DevOps organization.
+---
+
+# azuredevops_serviceendpoint_sonarcloud
+Manages a SonarCloud service endpoint within Azure DevOps.
+
+## Example Usage
+
+```hcl
+resource "azuredevops_project" "example" {
+ name = "Example Project"
+ visibility = "private"
+ version_control = "Git"
+ work_item_template = "Agile"
+ description = "Managed by Terraform"
+}
+
+resource "azuredevops_serviceendpoint_sonarcloud" "example" {
+ project_id = azuredevops_project.example.id
+ service_endpoint_name = "Example SonarCloud"
+ 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.
+* `token` - (Required) Authentication Token generated through SonarCloud (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
+
+- [Azure DevOps Service REST API 6.0 - Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-6.0)
+- [Azure DevOps Service Connections](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml)
+- [SonarCloud User Token](https://docs.sonarcloud.org/latest/user-guide/user-token/)
+
+## Import
+Azure DevOps Service Endpoint SonarCloud can be imported using the **projectID/serviceEndpointID**, e.g.
+
+```sh
+terraform import azuredevops_serviceendpoint_sonarcloud.example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
+```