Class GetService
Inheritance
System.Object
GetService
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 GetService
Methods
View SourceInvokeAsync(GetServiceArgs, InvokeOptions)
Use this data source to access information about an existing Private Link Service.
NOTE Private Link 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.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; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServiceArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServiceResult> |