1. Packages
  2. Azure Classic
  3. API Docs
  4. privatelink
  5. getEndpointConnection

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.privatelink.getEndpointConnection

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Use this data source to access the connection status information about an existing Private Endpoint Connection.

    Example Usage

    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);
    
    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)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/privatelink"
    	"github.com/pulumi/pulumi/sdk/v3/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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.PrivateLink.GetEndpointConnection.Invoke(new()
        {
            Name = "example-private-endpoint",
            ResourceGroupName = "example-rg",
        });
    
        return new Dictionary<string, object?>
        {
            ["privateEndpointStatus"] = example.Apply(getEndpointConnectionResult => getEndpointConnectionResult.PrivateServiceConnections[0]?.Status),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.privatelink.PrivatelinkFunctions;
    import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = PrivatelinkFunctions.getEndpointConnection(GetEndpointConnectionArgs.builder()
                .name("example-private-endpoint")
                .resourceGroupName("example-rg")
                .build());
    
            ctx.export("privateEndpointStatus", example.applyValue(getEndpointConnectionResult -> getEndpointConnectionResult.privateServiceConnections()[0].status()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:privatelink:getEndpointConnection
          Arguments:
            name: example-private-endpoint
            resourceGroupName: example-rg
    outputs:
      privateEndpointStatus: ${example.privateServiceConnections[0].status}
    

    Using getEndpointConnection

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEndpointConnection(args: GetEndpointConnectionArgs, opts?: InvokeOptions): Promise<GetEndpointConnectionResult>
    function getEndpointConnectionOutput(args: GetEndpointConnectionOutputArgs, opts?: InvokeOptions): Output<GetEndpointConnectionResult>
    def get_endpoint_connection(name: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetEndpointConnectionResult
    def get_endpoint_connection_output(name: Optional[pulumi.Input[str]] = None,
                                resource_group_name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetEndpointConnectionResult]
    func GetEndpointConnection(ctx *Context, args *GetEndpointConnectionArgs, opts ...InvokeOption) (*GetEndpointConnectionResult, error)
    func GetEndpointConnectionOutput(ctx *Context, args *GetEndpointConnectionOutputArgs, opts ...InvokeOption) GetEndpointConnectionResultOutput

    > Note: This function is named GetEndpointConnection in the Go SDK.

    public static class GetEndpointConnection 
    {
        public static Task<GetEndpointConnectionResult> InvokeAsync(GetEndpointConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetEndpointConnectionResult> Invoke(GetEndpointConnectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEndpointConnectionResult> getEndpointConnection(GetEndpointConnectionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:privatelink/getEndpointConnection:getEndpointConnection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Specifies the Name of the private endpoint.
    ResourceGroupName string
    Specifies the Name of the Resource Group within which the private endpoint exists.
    Name string
    Specifies the Name of the private endpoint.
    ResourceGroupName string
    Specifies the Name of the Resource Group within which the private endpoint exists.
    name String
    Specifies the Name of the private endpoint.
    resourceGroupName String
    Specifies the Name of the Resource Group within which the private endpoint exists.
    name string
    Specifies the Name of the private endpoint.
    resourceGroupName string
    Specifies the Name of the Resource Group within which the private endpoint exists.
    name str
    Specifies the Name of the private endpoint.
    resource_group_name str
    Specifies the Name of the Resource Group within which the private endpoint exists.
    name String
    Specifies the Name of the private endpoint.
    resourceGroupName String
    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.
    NetworkInterfaces List<GetEndpointConnectionNetworkInterface>
    PrivateServiceConnections List<GetEndpointConnectionPrivateServiceConnection>
    ResourceGroupName string
    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.
    NetworkInterfaces []GetEndpointConnectionNetworkInterface
    PrivateServiceConnections []GetEndpointConnectionPrivateServiceConnection
    ResourceGroupName string
    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.
    networkInterfaces List<GetEndpointConnectionNetworkInterface>
    privateServiceConnections List<GetEndpointConnectionPrivateServiceConnection>
    resourceGroupName String
    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.
    networkInterfaces GetEndpointConnectionNetworkInterface[]
    privateServiceConnections GetEndpointConnectionPrivateServiceConnection[]
    resourceGroupName string
    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.
    network_interfaces Sequence[GetEndpointConnectionNetworkInterface]
    private_service_connections Sequence[GetEndpointConnectionPrivateServiceConnection]
    resource_group_name str
    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.
    networkInterfaces List<Property Map>
    privateServiceConnections List<Property Map>
    resourceGroupName String

    Supporting Types

    GetEndpointConnectionNetworkInterface

    Id string
    The ID of the network interface associated with the private endpoint.
    Name string
    Specifies the Name of the private endpoint.
    Id string
    The ID of the network interface associated with the private endpoint.
    Name string
    Specifies the Name of the private endpoint.
    id String
    The ID of the network interface associated with the private endpoint.
    name String
    Specifies the Name of the private endpoint.
    id string
    The ID of the network interface associated with the private endpoint.
    name string
    Specifies the Name of the private endpoint.
    id str
    The ID of the network interface associated with the private endpoint.
    name str
    Specifies the Name of the private endpoint.
    id String
    The ID of the network interface associated with the private endpoint.
    name String
    Specifies the Name of the private endpoint.

    GetEndpointConnectionPrivateServiceConnection

    Name string
    Specifies the Name of the private endpoint.
    PrivateIpAddress string
    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.
    RequestResponse string
    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 automatically Approved. 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 the request_response will display the same text from your request_message in the private_service_connection block above. If the private endpoint connection request was Rejected by the owner of the remote resource, the text for the rejection will be displayed as the request_response text, if the private endpoint connection request was Approved by the owner of the remote resource, the text for the approval will be displayed as the request_response text
    Status string
    The current status of the private endpoint request, possible values will be Pending, Approved, Rejected, or Disconnected.
    Name string
    Specifies the Name of the private endpoint.
    PrivateIpAddress string
    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.
    RequestResponse string
    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 automatically Approved. 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 the request_response will display the same text from your request_message in the private_service_connection block above. If the private endpoint connection request was Rejected by the owner of the remote resource, the text for the rejection will be displayed as the request_response text, if the private endpoint connection request was Approved by the owner of the remote resource, the text for the approval will be displayed as the request_response text
    Status string
    The current status of the private endpoint request, possible values will be Pending, Approved, Rejected, or Disconnected.
    name String
    Specifies the Name of the private endpoint.
    privateIpAddress String
    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.
    requestResponse String
    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 automatically Approved. 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 the request_response will display the same text from your request_message in the private_service_connection block above. If the private endpoint connection request was Rejected by the owner of the remote resource, the text for the rejection will be displayed as the request_response text, if the private endpoint connection request was Approved by the owner of the remote resource, the text for the approval will be displayed as the request_response text
    status String
    The current status of the private endpoint request, possible values will be Pending, Approved, Rejected, or Disconnected.
    name string
    Specifies the Name of the private endpoint.
    privateIpAddress string
    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.
    requestResponse string
    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 automatically Approved. 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 the request_response will display the same text from your request_message in the private_service_connection block above. If the private endpoint connection request was Rejected by the owner of the remote resource, the text for the rejection will be displayed as the request_response text, if the private endpoint connection request was Approved by the owner of the remote resource, the text for the approval will be displayed as the request_response text
    status string
    The current status of the private endpoint request, possible values will be Pending, Approved, Rejected, or Disconnected.
    name str
    Specifies the Name of the private endpoint.
    private_ip_address str
    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 the Auto-Approved RBAC permission list for the remote resource, all private endpoint connection requests will be automatically Approved. 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 the request_response will display the same text from your request_message in the private_service_connection block above. If the private endpoint connection request was Rejected by the owner of the remote resource, the text for the rejection will be displayed as the request_response text, if the private endpoint connection request was Approved by the owner of the remote resource, the text for the approval will be displayed as the request_response text
    status str
    The current status of the private endpoint request, possible values will be Pending, Approved, Rejected, or Disconnected.
    name String
    Specifies the Name of the private endpoint.
    privateIpAddress String
    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.
    requestResponse String
    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 automatically Approved. 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 the request_response will display the same text from your request_message in the private_service_connection block above. If the private endpoint connection request was Rejected by the owner of the remote resource, the text for the rejection will be displayed as the request_response text, if the private endpoint connection request was Approved by the owner of the remote resource, the text for the approval will be displayed as the request_response text
    status String
    The current status of the private endpoint request, possible values will be Pending, Approved, Rejected, or Disconnected.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi