subcategory | layout | page_title | description |
---|---|---|---|
Network |
azurerm |
Azure Resource Manager: azurerm_private_endpoint_connection |
Gets the connection status information about an existing Private Endpoint |
Use this data source to access the connection status information about an existing Private Endpoint Connection.
data "azurerm_private_endpoint_connection" "example" {
name = "example-private-endpoint"
resource_group_name = "example-rg"
}
output "private_endpoint_status" {
value = data.azurerm_private_endpoint_connection.example.private_service_connection[0].status
}
The following arguments are supported:
name
- Specifies the Name of the private endpoint.resource_group_name
- Specifies the Name of the Resource Group within which the private endpoint exists.
The following attributes are exported:
-
id
- The ID of the Private Endpoint. -
location
- The supported Azure location where the resource exists.
A network_interface
block exports:
-
id
- The ID of the network interface associated with the private endpoint. -
name
- The name of the network interface associated with the private endpoint.
A private_service_connection
block exports the following:
name
- The name of the private endpoint.status
- The current status of the private endpoint request, possible values will bePending
,Approved
,Rejected
, orDisconnected
.private_ip_address
- The private IP address associated with the private endpoint, note that you will have a private IP address assigned to the private endpoint even if the connection request wasRejected
.request_response
- Possible values are as follows:Value Meaning Auto-Approved
The remote resource owner has added you to the Auto-Approved
RBAC permission list for the remote resource, all private endpoint connection requests will be automaticallyApproved
.Deleted state
The resource owner has Rejected
the private endpoint connection request and has removed your private endpoint request from the remote resource.request/response message
If you submitted a manual private endpoint connection request, while in the Pending
status therequest_response
will display the same text from yourrequest_message
in theprivate_service_connection
block above. If the private endpoint connection request wasRejected
by the owner of the remote resource, the text for the rejection will be displayed as therequest_response
text, if the private endpoint connection request wasApproved
by the owner of the remote resource, the text for the approval will be displayed as therequest_response
text
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Private Endpoint.