GetEndpointConnection
Use this data source to access the connection status information about an existing Private Endpoint Connection.
NOTE Private Endpoint is currently in Public Preview.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.PrivateLink.GetEndpointConnection.InvokeAsync(new Azure.PrivateLink.GetEndpointConnectionArgs
{
Name = "example-private-endpoint",
ResourceGroupName = "example-rg",
}));
this.PrivateEndpointStatus = example.Apply(example => example.PrivateServiceConnections[0].Status);
}
[Output("privateEndpointStatus")]
public Output<string> PrivateEndpointStatus { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/privatelink"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := privatelink.GetEndpointConnection(ctx, &privatelink.GetEndpointConnectionArgs{
Name: "example-private-endpoint",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("privateEndpointStatus", example.PrivateServiceConnections[0].Status)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.privatelink.get_endpoint_connection(name="example-private-endpoint",
resource_group_name="example-rg")
pulumi.export("privateEndpointStatus", example.private_service_connections[0]["status"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.privatelink.getEndpointConnection({
name: "example-private-endpoint",
resourceGroupName: "example-rg",
});
export const privateEndpointStatus = example.then(example => example.privateServiceConnections[0].status);Using GetEndpointConnection
function getEndpointConnection(args: GetEndpointConnectionArgs, opts?: InvokeOptions): Promise<GetEndpointConnectionResult>function get_endpoint_connection(name=None, resource_group_name=None, opts=None)func GetEndpointConnection(ctx *Context, args *GetEndpointConnectionArgs, opts ...InvokeOption) (*GetEndpointConnectionResult, error)public static class GetEndpointConnection {
public static Task<GetEndpointConnectionResult> InvokeAsync(GetEndpointConnectionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the Name of the private endpoint.
- Resource
Group stringName Specifies the Name of the Resource Group within which the private endpoint exists.
- Name string
Specifies the Name of the private endpoint.
- Resource
Group stringName Specifies the Name of the Resource Group within which the private endpoint exists.
- name string
Specifies the Name of the private endpoint.
- resource
Group stringName Specifies the Name of the Resource Group within which the private endpoint exists.
- name str
Specifies the Name of the private endpoint.
- resource_
group_ strname Specifies the Name of the Resource Group within which the private endpoint exists.
GetEndpointConnection Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The supported Azure location where the resource exists.
- Name string
The name of the private endpoint.
- Private
Service List<GetConnections Endpoint Connection Private Service Connection> - Resource
Group stringName
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The supported Azure location where the resource exists.
- Name string
The name of the private endpoint.
- Private
Service []GetConnections Endpoint Connection Private Service Connection - Resource
Group stringName
- id string
The provider-assigned unique ID for this managed resource.
- location string
The supported Azure location where the resource exists.
- name string
The name of the private endpoint.
- private
Service GetConnections Endpoint Connection Private Service Connection[] - resource
Group stringName
- id str
The provider-assigned unique ID for this managed resource.
- location str
The supported Azure location where the resource exists.
- name str
The name of the private endpoint.
- private_
service_ List[Getconnections Endpoint Connection Private Service Connection] - resource_
group_ strname
Supporting Types
GetEndpointConnectionPrivateServiceConnection
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Name string
Specifies the Name of the private endpoint.
- Private
Ip stringAddress 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 was
Rejected.- Request
Response string Possible values are as follows: Value | Meaning – | –
Auto-Approved| The remote resource owner has added you to theAuto-ApprovedRBAC permission list for the remote resource, all private endpoint connection requests will be automaticallyApproved.Deleted state| The resource owner hasRejectedthe 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 thePendingstatus therequest_responsewill display the same text from yourrequest_messagein theprivate_service_connectionblock above. If the private endpoint connection request wasRejectedby the owner of the remote resource, the text for the rejection will be displayed as therequest_responsetext, if the private endpoint connection request wasApprovedby the owner of the remote resource, the text for the approval will be displayed as therequest_responsetext- Status string
The current status of the private endpoint request, possible values will be
Pending,Approved,Rejected, orDisconnected.
- Name string
Specifies the Name of the private endpoint.
- Private
Ip stringAddress 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 was
Rejected.- Request
Response string Possible values are as follows: Value | Meaning – | –
Auto-Approved| The remote resource owner has added you to theAuto-ApprovedRBAC permission list for the remote resource, all private endpoint connection requests will be automaticallyApproved.Deleted state| The resource owner hasRejectedthe 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 thePendingstatus therequest_responsewill display the same text from yourrequest_messagein theprivate_service_connectionblock above. If the private endpoint connection request wasRejectedby the owner of the remote resource, the text for the rejection will be displayed as therequest_responsetext, if the private endpoint connection request wasApprovedby the owner of the remote resource, the text for the approval will be displayed as therequest_responsetext- Status string
The current status of the private endpoint request, possible values will be
Pending,Approved,Rejected, orDisconnected.
- name string
Specifies the Name of the private endpoint.
- private
Ip stringAddress 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 was
Rejected.- request
Response string Possible values are as follows: Value | Meaning – | –
Auto-Approved| The remote resource owner has added you to theAuto-ApprovedRBAC permission list for the remote resource, all private endpoint connection requests will be automaticallyApproved.Deleted state| The resource owner hasRejectedthe 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 thePendingstatus therequest_responsewill display the same text from yourrequest_messagein theprivate_service_connectionblock above. If the private endpoint connection request wasRejectedby the owner of the remote resource, the text for the rejection will be displayed as therequest_responsetext, if the private endpoint connection request wasApprovedby the owner of the remote resource, the text for the approval will be displayed as therequest_responsetext- status string
The current status of the private endpoint request, possible values will be
Pending,Approved,Rejected, orDisconnected.
- name str
Specifies the Name of the private endpoint.
- private_
ip_ straddress 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 was
Rejected.- request
Response str Possible values are as follows: Value | Meaning – | –
Auto-Approved| The remote resource owner has added you to theAuto-ApprovedRBAC permission list for the remote resource, all private endpoint connection requests will be automaticallyApproved.Deleted state| The resource owner hasRejectedthe 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 thePendingstatus therequest_responsewill display the same text from yourrequest_messagein theprivate_service_connectionblock above. If the private endpoint connection request wasRejectedby the owner of the remote resource, the text for the rejection will be displayed as therequest_responsetext, if the private endpoint connection request wasApprovedby the owner of the remote resource, the text for the approval will be displayed as therequest_responsetext- status str
The current status of the private endpoint request, possible values will be
Pending,Approved,Rejected, orDisconnected.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.