Class GetEndpointConnection
Inheritance
System.Object
GetEndpointConnection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.PrivateLink
Assembly: Pulumi.Azure.dll
Syntax
public static class GetEndpointConnection
Methods
View SourceInvokeAsync(GetEndpointConnectionArgs, InvokeOptions)
Use this data source to access the connection status information about an existing Private Endpoint Connection.
NOTE Private Endpoint is currently in Public Preview.
{{% examples %}}
Example Usage
{{% example %}}
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; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetEndpointConnectionResult> InvokeAsync(GetEndpointConnectionArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetEndpointConnectionArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetEndpointConnectionResult> |