1. Packages
  2. Azure Native
  3. API Docs
  4. databasewatcher
  5. SharedPrivateLinkResource
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native.databasewatcher.SharedPrivateLinkResource

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const sharedPrivateLinkResource = new azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResource", {
    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",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

shared_private_link_resource = azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResource",
    dns_zone="ec3ae9d410ba",
    group_id="vault",
    private_link_resource_id="/subscriptions/6f53185c-ea09-4fc3-9075-318dec805303/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih",
    request_message="request message",
    resource_group_name="apiTest-ddat4p",
    shared_private_link_resource_name="monitoringh22eed",
    watcher_name="databasemo3ej9ih")
Copy
resources:
  sharedPrivateLinkResource:
    type: azure-native:databasewatcher:SharedPrivateLinkResource
    properties:
      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
Copy

Create SharedPrivateLinkResource Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SharedPrivateLinkResource(name: string, args: SharedPrivateLinkResourceArgs, opts?: CustomResourceOptions);
@overload
def SharedPrivateLinkResource(resource_name: str,
                              args: SharedPrivateLinkResourceArgs,
                              opts: Optional[ResourceOptions] = None)

@overload
def SharedPrivateLinkResource(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              group_id: Optional[str] = None,
                              private_link_resource_id: Optional[str] = None,
                              request_message: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              watcher_name: Optional[str] = None,
                              dns_zone: Optional[str] = None,
                              shared_private_link_resource_name: Optional[str] = None)
func NewSharedPrivateLinkResource(ctx *Context, name string, args SharedPrivateLinkResourceArgs, opts ...ResourceOption) (*SharedPrivateLinkResource, error)
public SharedPrivateLinkResource(string name, SharedPrivateLinkResourceArgs args, CustomResourceOptions? opts = null)
public SharedPrivateLinkResource(String name, SharedPrivateLinkResourceArgs args)
public SharedPrivateLinkResource(String name, SharedPrivateLinkResourceArgs args, CustomResourceOptions options)
type: azure-native:databasewatcher:SharedPrivateLinkResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SharedPrivateLinkResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SharedPrivateLinkResourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SharedPrivateLinkResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SharedPrivateLinkResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SharedPrivateLinkResourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var sharedPrivateLinkResourceResource = new AzureNative.DatabaseWatcher.SharedPrivateLinkResource("sharedPrivateLinkResourceResource", new()
{
    GroupId = "string",
    PrivateLinkResourceId = "string",
    RequestMessage = "string",
    ResourceGroupName = "string",
    WatcherName = "string",
    DnsZone = "string",
    SharedPrivateLinkResourceName = "string",
});
Copy
example, err := databasewatcher.NewSharedPrivateLinkResource(ctx, "sharedPrivateLinkResourceResource", &databasewatcher.SharedPrivateLinkResourceArgs{
	GroupId:                       pulumi.String("string"),
	PrivateLinkResourceId:         pulumi.String("string"),
	RequestMessage:                pulumi.String("string"),
	ResourceGroupName:             pulumi.String("string"),
	WatcherName:                   pulumi.String("string"),
	DnsZone:                       pulumi.String("string"),
	SharedPrivateLinkResourceName: pulumi.String("string"),
})
Copy
var sharedPrivateLinkResourceResource = new SharedPrivateLinkResource("sharedPrivateLinkResourceResource", SharedPrivateLinkResourceArgs.builder()
    .groupId("string")
    .privateLinkResourceId("string")
    .requestMessage("string")
    .resourceGroupName("string")
    .watcherName("string")
    .dnsZone("string")
    .sharedPrivateLinkResourceName("string")
    .build());
Copy
shared_private_link_resource_resource = azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResourceResource",
    group_id="string",
    private_link_resource_id="string",
    request_message="string",
    resource_group_name="string",
    watcher_name="string",
    dns_zone="string",
    shared_private_link_resource_name="string")
Copy
const sharedPrivateLinkResourceResource = new azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResourceResource", {
    groupId: "string",
    privateLinkResourceId: "string",
    requestMessage: "string",
    resourceGroupName: "string",
    watcherName: "string",
    dnsZone: "string",
    sharedPrivateLinkResourceName: "string",
});
Copy
type: azure-native:databasewatcher:SharedPrivateLinkResource
properties:
    dnsZone: string
    groupId: string
    privateLinkResourceId: string
    requestMessage: string
    resourceGroupName: string
    sharedPrivateLinkResourceName: string
    watcherName: string
Copy

SharedPrivateLinkResource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SharedPrivateLinkResource resource accepts the following input properties:

GroupId This property is required. string
The group id from the provider of resource the shared private link resource is for.
PrivateLinkResourceId This property is required. string
The resource ID of the resource the shared private link resource is for.
RequestMessage This property is required. string
The request message for requesting approval of the shared private link resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WatcherName
This property is required.
Changes to this property will trigger replacement.
string
The database watcher name.
DnsZone string
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'.
SharedPrivateLinkResourceName Changes to this property will trigger replacement. string
The Shared Private Link resource name.
GroupId This property is required. string
The group id from the provider of resource the shared private link resource is for.
PrivateLinkResourceId This property is required. string
The resource ID of the resource the shared private link resource is for.
RequestMessage This property is required. string
The request message for requesting approval of the shared private link resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WatcherName
This property is required.
Changes to this property will trigger replacement.
string
The database watcher name.
DnsZone string
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'.
SharedPrivateLinkResourceName Changes to this property will trigger replacement. string
The Shared Private Link resource name.
groupId This property is required. String
The group id from the provider of resource the shared private link resource is for.
privateLinkResourceId This property is required. String
The resource ID of the resource the shared private link resource is for.
requestMessage This property is required. String
The request message for requesting approval of the shared private link resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
watcherName
This property is required.
Changes to this property will trigger replacement.
String
The database watcher name.
dnsZone String
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'.
sharedPrivateLinkResourceName Changes to this property will trigger replacement. String
The Shared Private Link resource name.
groupId This property is required. string
The group id from the provider of resource the shared private link resource is for.
privateLinkResourceId This property is required. string
The resource ID of the resource the shared private link resource is for.
requestMessage This property is required. string
The request message for requesting approval of the shared private link resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
watcherName
This property is required.
Changes to this property will trigger replacement.
string
The database watcher name.
dnsZone string
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'.
sharedPrivateLinkResourceName Changes to this property will trigger replacement. string
The Shared Private Link resource name.
group_id This property is required. str
The group id from the provider of resource the shared private link resource is for.
private_link_resource_id This property is required. str
The resource ID of the resource the shared private link resource is for.
request_message This property is required. str
The request message for requesting approval of the shared private link resource.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
watcher_name
This property is required.
Changes to this property will trigger replacement.
str
The database watcher name.
dns_zone str
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'.
shared_private_link_resource_name Changes to this property will trigger replacement. str
The Shared Private Link resource name.
groupId This property is required. String
The group id from the provider of resource the shared private link resource is for.
privateLinkResourceId This property is required. String
The resource ID of the resource the shared private link resource is for.
requestMessage This property is required. String
The request message for requesting approval of the shared private link resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
watcherName
This property is required.
Changes to this property will trigger replacement.
String
The database watcher name.
dnsZone String
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'.
sharedPrivateLinkResourceName Changes to this property will trigger replacement. String
The Shared Private Link resource name.

Outputs

All input properties are implicitly available as output properties. Additionally, the SharedPrivateLinkResource resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
ProvisioningState string
The provisioning state of the resource.
Status string
Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
SystemData Pulumi.AzureNative.DatabaseWatcher.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
ProvisioningState string
The provisioning state of the resource.
Status string
Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
The provisioning state of the resource.
status String
Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
provisioningState string
The provisioning state of the resource.
status string
Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
provisioning_state str
The provisioning state of the resource.
status str
Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
The provisioning state of the resource.
status String
Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

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} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi