summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorSharath Nair <snair3@agl.com.au>2022-07-15 14:13:23 +1000
committerSharath Nair <snair3@agl.com.au>2022-07-15 14:13:23 +1000
commitbbf362ca1ec475a187fe1560883d2dd0ea4c69a4 (patch)
tree30a6082701230537d97945399af04725e9803413 /website
parentc74ab6c4286356111af9a01ea2296ee02db9dcb6 (diff)
Add datasource for azurerm serviceendpoints
Diffstat (limited to 'website')
-rw-r--r--website/azuredevops.erb3
-rw-r--r--website/docs/d/serviceendpoint_azurerm.html.markdown71
2 files changed, 74 insertions, 0 deletions
diff --git a/website/azuredevops.erb b/website/azuredevops.erb
index 886856e3..6687ed64 100644
--- a/website/azuredevops.erb
+++ b/website/azuredevops.erb
@@ -76,6 +76,9 @@
<li>
<a href="/docs/providers/azuredevops/d/data_teams.html">azuredevops_teams</a>
</li>
+ <li>
+ <a href="/docs/providers/azuredevops/d/serviceendpoint_azurerm.html">azuredevops_serviceendpoint_azurerm</a>
+ </li>
</ul>
</li>
diff --git a/website/docs/d/serviceendpoint_azurerm.html.markdown b/website/docs/d/serviceendpoint_azurerm.html.markdown
new file mode 100644
index 00000000..0eed59b0
--- /dev/null
+++ b/website/docs/d/serviceendpoint_azurerm.html.markdown
@@ -0,0 +1,71 @@
+---
+layout: "azuredevops"
+page_title: "AzureDevops: Data Source: azuredevops_serviceendpoint_azurerm"
+description: |-
+ Gets information about an existing AzureRM Service Endpoint.
+---
+
+# Data Source : azuredevops_serviceendpoint_azurerm
+
+Use this data source to access information about an existing AzureRM service Endpoint.
+
+## Example Usage
+
+### By Service Endpoint ID
+
+```hcl
+data "azuredevops_project" "sample" {
+ name = "Sample Project"
+}
+
+data "azuredevops_serviceendpoint_azurerm" "id" {
+ project_id = data.azuredevops_project.sample.id
+ id = "00000000-0000-0000-0000-000000000000"
+}
+
+output "service_endpoint_name" {
+ value = data.azuredevops_serviceendpoint_azurerm.service_endpoint_name
+}
+```
+
+### By Service Endpoint Name
+
+```hcl
+data "azuredevops_project" "sample" {
+ name = "Sample Project"
+}
+
+data "azuredevops_serviceendpoint_azurerm" "id" {
+ project_id = data.azuredevops_project.sample.id
+ service_endpoint_name = "Example-Service-Endpoint"
+}
+
+output "service_endpoint_id" {
+ value = data.azuredevops_serviceendpoint_azurerm.id
+}
+```
+
+## Arguments Reference
+
+The following arguments are supported:
+
+* `project_id` - (Required) The ID of the project.
+
+* `id` - (Optional) the ID of the Service Endpoint.
+
+* `service_endpoint_name` - (Optional) the Name of the Service Endpoint.
+
+~> **NOTE:** One of either `id` or `service_endpoint_name` must be specified.
+
+## Attributes Reference
+
+In addition to the Arguments list above - the following Attributes are exported:
+
+* `authorization` - Specifies the Authorization Scheme Map.
+* `azurerm_management_group_id` - Specified the Management Group ID of the Service Endpoint is target, if availble.
+* `azurerm_management_group_name` - Specified the Management Group Name of the Service Endpoint target, if availble.
+* `azurerm_subscription_id` - Specifies the Subscription ID of the Service Endpoint target, if available.
+* `azurerm_subscription_name` - Specifies the Subscription Name of the Service Endpoint target, if available.
+* `resource_group` - Specifies the Resource Group of the Service Endpoint target, if available.
+* `azurerm_spn_tenanid` - Specifies the Tenant ID of the Azure targets.
+* `description` - Specifies the description of the Service Endpoint.