GetService
Use this data source to access 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.GetService.InvokeAsync(new Azure.PrivateLink.GetServiceArgs
{
Name = "myPrivateLinkService",
ResourceGroupName = "PrivateLinkServiceRG",
}));
this.PrivateLinkServiceId = example.Apply(example => example.Id);
}
[Output("privateLinkServiceId")]
public Output<string> PrivateLinkServiceId { 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.GetService(ctx, &privatelink.GetServiceArgs{
Name: "myPrivateLinkService",
ResourceGroupName: "PrivateLinkServiceRG",
}, nil)
if err != nil {
return err
}
ctx.Export("privateLinkServiceId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.privatelink.get_service(name="myPrivateLinkService",
resource_group_name="PrivateLinkServiceRG")
pulumi.export("privateLinkServiceId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.privatelink.getService({
name: "myPrivateLinkService",
resourceGroupName: "PrivateLinkServiceRG",
});
export const privateLinkServiceId = example.then(example => example.id);Using GetService
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>function get_service(name=None, resource_group_name=None, opts=None)func GetService(ctx *Context, args *GetServiceArgs, opts ...InvokeOption) (*GetServiceResult, error)public static class GetService {
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the private link service.
- Resource
Group stringName The name of the resource group in which the private link service resides.
- Name string
The name of the private link service.
- Resource
Group stringName The name of the resource group in which the private link service resides.
- name string
The name of the private link service.
- resource
Group stringName The name of the resource group in which the private link service resides.
- name str
The name of the private link service.
- resource_
group_ strname The name of the resource group in which the private link service resides.
GetService Result
The following output properties are available:
- Alias string
The alias is a globally unique name for your private link service which Azure generates for you. Your can use this alias to request a connection to your private link service.
- Auto
Approval List<string>Subscription Ids The list of subscription(s) globally unique identifiers that will be auto approved to use the private link service.
- Enable
Proxy boolProtocol Does the Private Link Service support the Proxy Protocol?
- Id string
The provider-assigned unique ID for this managed resource.
- Load
Balancer List<string>Frontend Ip Configuration Ids The list of Standard Load Balancer(SLB) resource IDs. The Private Link service is tied to the frontend IP address of a SLB. All traffic destined for the private link service will reach the frontend of the SLB. You can configure SLB rules to direct this traffic to appropriate backend pools where your applications are running.
- Location string
The supported Azure location where the resource exists.
- Name string
The name of private link service NAT IP configuration.
- Nat
Ip List<GetConfigurations Service Nat Ip Configuration> The
nat_ip_configurationblock as defined below.- Resource
Group stringName - Dictionary<string, string>
A mapping of tags to assign to the resource.
- Visibility
Subscription List<string>Ids The list of subscription(s) globally unique identifiers(GUID) that will be able to see the private link service.
- Alias string
The alias is a globally unique name for your private link service which Azure generates for you. Your can use this alias to request a connection to your private link service.
- Auto
Approval []stringSubscription Ids The list of subscription(s) globally unique identifiers that will be auto approved to use the private link service.
- Enable
Proxy boolProtocol Does the Private Link Service support the Proxy Protocol?
- Id string
The provider-assigned unique ID for this managed resource.
- Load
Balancer []stringFrontend Ip Configuration Ids The list of Standard Load Balancer(SLB) resource IDs. The Private Link service is tied to the frontend IP address of a SLB. All traffic destined for the private link service will reach the frontend of the SLB. You can configure SLB rules to direct this traffic to appropriate backend pools where your applications are running.
- Location string
The supported Azure location where the resource exists.
- Name string
The name of private link service NAT IP configuration.
- Nat
Ip []GetConfigurations Service Nat Ip Configuration The
nat_ip_configurationblock as defined below.- Resource
Group stringName - map[string]string
A mapping of tags to assign to the resource.
- Visibility
Subscription []stringIds The list of subscription(s) globally unique identifiers(GUID) that will be able to see the private link service.
- alias string
The alias is a globally unique name for your private link service which Azure generates for you. Your can use this alias to request a connection to your private link service.
- auto
Approval string[]Subscription Ids The list of subscription(s) globally unique identifiers that will be auto approved to use the private link service.
- enable
Proxy booleanProtocol Does the Private Link Service support the Proxy Protocol?
- id string
The provider-assigned unique ID for this managed resource.
- load
Balancer string[]Frontend Ip Configuration Ids The list of Standard Load Balancer(SLB) resource IDs. The Private Link service is tied to the frontend IP address of a SLB. All traffic destined for the private link service will reach the frontend of the SLB. You can configure SLB rules to direct this traffic to appropriate backend pools where your applications are running.
- location string
The supported Azure location where the resource exists.
- name string
The name of private link service NAT IP configuration.
- nat
Ip GetConfigurations Service Nat Ip Configuration[] The
nat_ip_configurationblock as defined below.- resource
Group stringName - {[key: string]: string}
A mapping of tags to assign to the resource.
- visibility
Subscription string[]Ids The list of subscription(s) globally unique identifiers(GUID) that will be able to see the private link service.
- alias str
The alias is a globally unique name for your private link service which Azure generates for you. Your can use this alias to request a connection to your private link service.
- auto_
approval_ List[str]subscription_ ids The list of subscription(s) globally unique identifiers that will be auto approved to use the private link service.
- enable_
proxy_ boolprotocol Does the Private Link Service support the Proxy Protocol?
- id str
The provider-assigned unique ID for this managed resource.
- load_
balancer_ List[str]frontend_ ip_ configuration_ ids The list of Standard Load Balancer(SLB) resource IDs. The Private Link service is tied to the frontend IP address of a SLB. All traffic destined for the private link service will reach the frontend of the SLB. You can configure SLB rules to direct this traffic to appropriate backend pools where your applications are running.
- location str
The supported Azure location where the resource exists.
- name str
The name of private link service NAT IP configuration.
- nat_
ip_ List[Getconfigurations Service Nat Ip Configuration] The
nat_ip_configurationblock as defined below.- resource_
group_ strname - Dict[str, str]
A mapping of tags to assign to the resource.
- visibility_
subscription_ List[str]ids The list of subscription(s) globally unique identifiers(GUID) that will be able to see the private link service.
Supporting Types
GetServiceNatIpConfiguration
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
The name of the private link service.
- Primary bool
Value that indicates if the IP configuration is the primary configuration or not.
- Private
Ip stringAddress The private IP address of the NAT IP configuration.
- Private
Ip stringAddress Version The version of the IP Protocol.
- Subnet
Id string The ID of the subnet to be used by the service.
- Name string
The name of the private link service.
- Primary bool
Value that indicates if the IP configuration is the primary configuration or not.
- Private
Ip stringAddress The private IP address of the NAT IP configuration.
- Private
Ip stringAddress Version The version of the IP Protocol.
- Subnet
Id string The ID of the subnet to be used by the service.
- name string
The name of the private link service.
- primary boolean
Value that indicates if the IP configuration is the primary configuration or not.
- private
Ip stringAddress The private IP address of the NAT IP configuration.
- private
Ip stringAddress Version The version of the IP Protocol.
- subnet
Id string The ID of the subnet to be used by the service.
- name str
The name of the private link service.
- primary bool
Value that indicates if the IP configuration is the primary configuration or not.
- private
Ip strAddress Version The version of the IP Protocol.
- private_
ip_ straddress The private IP address of the NAT IP configuration.
- subnet_
id str The ID of the subnet to be used by the service.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.