GetServiceEndpointConnections
Use this data source to access endpoint connection information about an existing Private Link Service.
NOTE Private Link is currently in Public Preview.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.PrivateLink.GetServiceEndpointConnections.InvokeAsync(new Azure.PrivateLink.GetServiceEndpointConnectionsArgs
{
ServiceId = azurerm_private_link_service.Example.Id,
ResourceGroupName = azurerm_resource_group.Example.Name,
}));
this.PrivateEndpointStatus = example.Apply(example => example.PrivateEndpointConnections[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.GetServiceEndpointConnections(ctx, &privatelink.GetServiceEndpointConnectionsArgs{
ServiceId: azurerm_private_link_service.Example.Id,
ResourceGroupName: azurerm_resource_group.Example.Name,
}, nil)
if err != nil {
return err
}
ctx.Export("privateEndpointStatus", example.PrivateEndpointConnections[0].Status)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.privatelink.get_service_endpoint_connections(service_id=azurerm_private_link_service["example"]["id"],
resource_group_name=azurerm_resource_group["example"]["name"])
pulumi.export("privateEndpointStatus", example.private_endpoint_connections[0]["status"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.privatelink.getServiceEndpointConnections({
serviceId: azurerm_private_link_service.example.id,
resourceGroupName: azurerm_resource_group.example.name,
});
export const privateEndpointStatus = example.then(example => example.privateEndpointConnections[0].status);Using GetServiceEndpointConnections
function getServiceEndpointConnections(args: GetServiceEndpointConnectionsArgs, opts?: InvokeOptions): Promise<GetServiceEndpointConnectionsResult>function get_service_endpoint_connections(resource_group_name=None, service_id=None, opts=None)func GetServiceEndpointConnections(ctx *Context, args *GetServiceEndpointConnectionsArgs, opts ...InvokeOption) (*GetServiceEndpointConnectionsResult, error)public static class GetServiceEndpointConnections {
public static Task<GetServiceEndpointConnectionsResult> InvokeAsync(GetServiceEndpointConnectionsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Resource
Group stringName The name of the resource group in which the private link service resides.
- Service
Id string The resource ID of the private link service.
- Resource
Group stringName The name of the resource group in which the private link service resides.
- Service
Id string The resource ID of the private link service.
- resource
Group stringName The name of the resource group in which the private link service resides.
- service
Id string The resource ID of the private link service.
- resource_
group_ strname The name of the resource group in which the private link service resides.
- service_
id str The resource ID of the private link service.
GetServiceEndpointConnections Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Private
Endpoint List<GetConnections Service Endpoint Connections Private Endpoint Connection> - Resource
Group stringName - Service
Id string - Service
Name string The name of the private link service.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Private
Endpoint []GetConnections Service Endpoint Connections Private Endpoint Connection - Resource
Group stringName - Service
Id string - Service
Name string The name of the private link service.
- id string
The provider-assigned unique ID for this managed resource.
- location string
- private
Endpoint GetConnections Service Endpoint Connections Private Endpoint Connection[] - resource
Group stringName - service
Id string - service
Name string The name of the private link service.
- id str
The provider-assigned unique ID for this managed resource.
- location str
- private_
endpoint_ List[Getconnections Service Endpoint Connections Private Endpoint Connection] - resource_
group_ strname - service_
id str - service_
name str The name of the private link service.
Supporting Types
GetServiceEndpointConnectionsPrivateEndpointConnection
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Action
Required string A message indicating if changes on the service provider require any updates or not.
- Connection
Id string The resource id of the private link service connection between the private link service and the private link endpoint.
- Connection
Name string The name of the connection between the private link service and the private link endpoint.
- Description string
The request for approval message or the reason for rejection message.
- Private
Endpoint stringId The resource id of the private link endpoint.
- Private
Endpoint stringName The name of the private link endpoint.
- Status string
Indicates the state of the connection between the private link service and the private link endpoint, possible values are
Pending,ApprovedorRejected.
- Action
Required string A message indicating if changes on the service provider require any updates or not.
- Connection
Id string The resource id of the private link service connection between the private link service and the private link endpoint.
- Connection
Name string The name of the connection between the private link service and the private link endpoint.
- Description string
The request for approval message or the reason for rejection message.
- Private
Endpoint stringId The resource id of the private link endpoint.
- Private
Endpoint stringName The name of the private link endpoint.
- Status string
Indicates the state of the connection between the private link service and the private link endpoint, possible values are
Pending,ApprovedorRejected.
- action
Required string A message indicating if changes on the service provider require any updates or not.
- connection
Id string The resource id of the private link service connection between the private link service and the private link endpoint.
- connection
Name string The name of the connection between the private link service and the private link endpoint.
- description string
The request for approval message or the reason for rejection message.
- private
Endpoint stringId The resource id of the private link endpoint.
- private
Endpoint stringName The name of the private link endpoint.
- status string
Indicates the state of the connection between the private link service and the private link endpoint, possible values are
Pending,ApprovedorRejected.
- action
Required str A message indicating if changes on the service provider require any updates or not.
- connection
Id str The resource id of the private link service connection between the private link service and the private link endpoint.
- connection
Name str The name of the connection between the private link service and the private link endpoint.
- description str
The request for approval message or the reason for rejection message.
- private
Endpoint strId The resource id of the private link endpoint.
- private
Endpoint strName The name of the private link endpoint.
- status str
Indicates the state of the connection between the private link service and the private link endpoint, possible values are
Pending,ApprovedorRejected.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.