Shared Private Link Resource
Concrete proxy resource types can be created by aliasing this type using a specific property type. Azure REST API version: 2023-09-01-preview.
Example Usage
SharedPrivateLinkResources_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sharedPrivateLinkResource = new AzureNative.DatabaseWatcher.SharedPrivateLinkResource("sharedPrivateLinkResource", new()
{
DnsZone = "ec3ae9d410ba",
GroupId = "vault",
PrivateLinkResourceId = "/subscriptions/6f53185c-ea09-4fc3-9075-318dec805303/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih",
RequestMessage = "request message",
ResourceGroupName = "apiTest-ddat4p",
SharedPrivateLinkResourceName = "monitoringh22eed",
WatcherName = "databasemo3ej9ih",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/databasewatcher/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasewatcher.NewSharedPrivateLinkResource(ctx, "sharedPrivateLinkResource", &databasewatcher.SharedPrivateLinkResourceArgs{
DnsZone: pulumi.String("ec3ae9d410ba"),
GroupId: pulumi.String("vault"),
PrivateLinkResourceId: pulumi.String("/subscriptions/6f53185c-ea09-4fc3-9075-318dec805303/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih"),
RequestMessage: pulumi.String("request message"),
ResourceGroupName: pulumi.String("apiTest-ddat4p"),
SharedPrivateLinkResourceName: pulumi.String("monitoringh22eed"),
WatcherName: pulumi.String("databasemo3ej9ih"),
})
if err != nil {
return err
}
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.azurenative.databasewatcher.SharedPrivateLinkResource;
import com.pulumi.azurenative.databasewatcher.SharedPrivateLinkResourceArgs;
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 sharedPrivateLinkResource = new SharedPrivateLinkResource("sharedPrivateLinkResource", SharedPrivateLinkResourceArgs.builder()
.dnsZone("ec3ae9d410ba")
.groupId("vault")
.privateLinkResourceId("/subscriptions/6f53185c-ea09-4fc3-9075-318dec805303/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih")
.requestMessage("request message")
.resourceGroupName("apiTest-ddat4p")
.sharedPrivateLinkResourceName("monitoringh22eed")
.watcherName("databasemo3ej9ih")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:databasewatcher:SharedPrivateLinkResource monitoringh22eed /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}
Content copied to clipboard
Properties
Link copied to clipboard
The resource id of the resource the shared private link resource is for.
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The request message for requesting approval of the shared private link resource.
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.