Use this data source to access endpoint connection information about an existing Private Link Service.
data "azurerm_private_link_service_endpoint_connections" "example" {
service_id = azurerm_private_link_service.example.id
resource_group_name = azurerm_resource_group.example.name
}
output "private_endpoint_status" {
value = data.azurerm_private_link_service_endpoint_connections.example.private_endpoint_connections[0].status
}
The following arguments are supported:
service_id
- The resource ID of the private link service.
resource_group_name
- The name of the resource group in which the private link service resides.
service_name
- The name of the private link service.The private_endpoint_connections
block exports the following:
connection_id
- The resource id of the private link service connection between the private link service and the private link endpoint.
connection_name
- The name of the connection between the private link service and the private link endpoint.
private_endpoint_id
- The resource id of the private link endpoint.
private_endpoint_name
- The name of the private link endpoint.
action_required
- A message indicating if changes on the service provider require any updates or not.
description
- The request for approval message or the reason for rejection message.
status
- Indicates the state of the connection between the private link service and the private link endpoint, possible values are Pending
, Approved
or Rejected
.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Private Link Service.