get Private Link Resource
suspend fun getPrivateLinkResource(argument: GetPrivateLinkResourcePlainArgs): GetPrivateLinkResourceResult
Use this data source to access information about the Private Link Resource supported by the Web Pubsub Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const testResourceGroup = new azure.core.ResourceGroup("test", {
name: "terraform-webpubsub",
location: "east us",
});
const testService = new azure.webpubsub.Service("test", {
name: "tfex-webpubsub",
location: testResourceGroup.location,
resourceGroupName: testResourceGroup.name,
sku: "Standard_S1",
capacity: 1,
});
const test = azure.webpubsub.getPrivateLinkResourceOutput({
webPubsubId: testService.id,
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
test_resource_group = azure.core.ResourceGroup("test",
name="terraform-webpubsub",
location="east us")
test_service = azure.webpubsub.Service("test",
name="tfex-webpubsub",
location=test_resource_group.location,
resource_group_name=test_resource_group.name,
sku="Standard_S1",
capacity=1)
test = azure.webpubsub.get_private_link_resource_output(web_pubsub_id=test_service.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var testResourceGroup = new Azure.Core.ResourceGroup("test", new()
{
Name = "terraform-webpubsub",
Location = "east us",
});
var testService = new Azure.WebPubSub.Service("test", new()
{
Name = "tfex-webpubsub",
Location = testResourceGroup.Location,
ResourceGroupName = testResourceGroup.Name,
Sku = "Standard_S1",
Capacity = 1,
});
var test = Azure.WebPubSub.GetPrivateLinkResource.Invoke(new()
{
WebPubsubId = testService.Id,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/webpubsub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testResourceGroup, err := core.NewResourceGroup(ctx, "test", &core.ResourceGroupArgs{
Name: pulumi.String("terraform-webpubsub"),
Location: pulumi.String("east us"),
})
if err != nil {
return err
}
testService, err := webpubsub.NewService(ctx, "test", &webpubsub.ServiceArgs{
Name: pulumi.String("tfex-webpubsub"),
Location: testResourceGroup.Location,
ResourceGroupName: testResourceGroup.Name,
Sku: pulumi.String("Standard_S1"),
Capacity: pulumi.Int(1),
})
if err != nil {
return err
}
_ = webpubsub.GetPrivateLinkResourceOutput(ctx, webpubsub.GetPrivateLinkResourceOutputArgs{
WebPubsubId: testService.ID(),
}, nil)
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.webpubsub.Service;
import com.pulumi.azure.webpubsub.ServiceArgs;
import com.pulumi.azure.webpubsub.WebpubsubFunctions;
import com.pulumi.azure.webpubsub.inputs.GetPrivateLinkResourceArgs;
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) {
var testResourceGroup = new ResourceGroup("testResourceGroup", ResourceGroupArgs.builder()
.name("terraform-webpubsub")
.location("east us")
.build());
var testService = new Service("testService", ServiceArgs.builder()
.name("tfex-webpubsub")
.location(testResourceGroup.location())
.resourceGroupName(testResourceGroup.name())
.sku("Standard_S1")
.capacity(1)
.build());
final var test = WebpubsubFunctions.getPrivateLinkResource(GetPrivateLinkResourceArgs.builder()
.webPubsubId(testService.id())
.build());
}
}
Content copied to clipboard
resources:
testResourceGroup:
type: azure:core:ResourceGroup
name: test
properties:
name: terraform-webpubsub
location: east us
testService:
type: azure:webpubsub:Service
name: test
properties:
name: tfex-webpubsub
location: ${testResourceGroup.location}
resourceGroupName: ${testResourceGroup.name}
sku: Standard_S1
capacity: 1
variables:
test:
fn::invoke:
function: azure:webpubsub:getPrivateLinkResource
arguments:
webPubsubId: ${testService.id}
Content copied to clipboard
API Providers
This data source uses the following Azure API Providers:
Microsoft.SignalRService
: 2024-03-01
Return
A collection of values returned by getPrivateLinkResource.
Parameters
argument
A collection of arguments for invoking getPrivateLinkResource.
Return
A collection of values returned by getPrivateLinkResource.
Parameters
web Pubsub Id
The ID of an existing Web Pubsub Resource which Private Link Resource should be retrieved for.
See also
suspend fun getPrivateLinkResource(argument: suspend GetPrivateLinkResourcePlainArgsBuilder.() -> Unit): GetPrivateLinkResourceResult
Return
A collection of values returned by getPrivateLinkResource.
Parameters
argument
Builder for com.pulumi.azure.webpubsub.kotlin.inputs.GetPrivateLinkResourcePlainArgs.