Shared Private Link Resource Args
Concrete proxy resource types can be created by aliasing this type using a specific property type. Uses Azure REST API version 2023-09-01-preview. Other available API versions: 2024-07-19-preview, 2024-10-01-preview, 2025-01-02.
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",
});
});
package main
import (
databasewatcher "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
})
}
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());
}
}
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}
Properties
The DNS zone segment to be included in the DNS name of the shared private link. Value is required for Azure Data Explorer clusters and SQL managed instances, and must be omitted for SQL logical servers and key vaults. The value is the second segment of the host FQDN name of the resource that the shared private link resource is for. For example: if the host name is 'adx-cluster-21187695.eastus.kusto.windows.net', then the value is 'eastus'; if the host name is 'sql-mi-23961134.767d5869f605.database.windows.net', then the value is '767d5869f605'.
The resource ID of the resource the shared private link resource is for.
The request message for requesting approval of the shared private link resource.
The name of the resource group. The name is case insensitive.
The Shared Private Link resource name.
The database watcher name.