PrivateLinkScopedResource

class PrivateLinkScopedResource : KotlinCustomResource

A private link scoped resource Uses Azure REST API version 2021-07-01-preview. In version 1.x of the Azure Native provider, it used API version 2019-10-17-preview. Other available API versions: 2021-09-01, 2023-06-01-preview.

Example Usage

Update a scoped resource in a private link scope.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateLinkScopedResource = new AzureNative.Insights.PrivateLinkScopedResource("privateLinkScopedResource", new()
{
LinkedResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component",
Name = "scoped-resource-name",
ResourceGroupName = "MyResourceGroup",
ScopeName = "MyPrivateLinkScope",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewPrivateLinkScopedResource(ctx, "privateLinkScopedResource", &insights.PrivateLinkScopedResourceArgs{
LinkedResourceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component"),
Name: pulumi.String("scoped-resource-name"),
ResourceGroupName: pulumi.String("MyResourceGroup"),
ScopeName: pulumi.String("MyPrivateLinkScope"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.PrivateLinkScopedResource;
import com.pulumi.azurenative.insights.PrivateLinkScopedResourceArgs;
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 privateLinkScopedResource = new PrivateLinkScopedResource("privateLinkScopedResource", PrivateLinkScopedResourceArgs.builder()
.linkedResourceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component")
.name("scoped-resource-name")
.resourceGroupName("MyResourceGroup")
.scopeName("MyPrivateLinkScope")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:insights:PrivateLinkScopedResource scoped-resource-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val linkedResourceId: Output<String>?

The resource id of the scoped Azure monitor resource.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

State of the private endpoint connection.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

System data

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>