Skip to main content

shared_private_link_resources

Creates, updates, deletes, gets or lists a shared_private_link_resources resource.

Overview

Nameshared_private_link_resources
TypeResource
Idazure.database_watcher.shared_private_link_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
dnsZonestringThe DNS zone to be included in the DNS name of the shared private link. Value is required for Azure Data Explorer clusters and SQL managed instances. The value to use is the second segment of the host FQDN name of the resource that the shared private link resource is for.
groupIdstringThe group id from the provider of resource the shared private link resource is for. Required.
privateLinkResourceIdstringThe resource ID of the resource the shared private link resource is for. Required.
provisioningStatestringThe provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
requestMessagestringThe request message for requesting approval of the shared private link resource. Required.
statusstringStatus of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. Known values are: "Pending", "Approved", "Rejected", and "Disconnected". (Pending, Approved, Rejected, Disconnected)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, watcher_name, shared_private_link_resource_name, subscription_idGet a SharedPrivateLinkResource.
list_by_watcherselectresource_group_name, watcher_name, subscription_idList SharedPrivateLinkResource resources by Watcher.
createinsertresource_group_name, watcher_name, shared_private_link_resource_name, subscription_idCreate a SharedPrivateLinkResource.
deletedeleteresource_group_name, watcher_name, shared_private_link_resource_name, subscription_idDelete a SharedPrivateLinkResource.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
watcher_namestringThe database watcher name. Required.

SELECT examples

Get a SharedPrivateLinkResource.

SELECT
id,
name,
dnsZone,
groupId,
privateLinkResourceId,
provisioningState,
requestMessage,
status,
systemData,
type
FROM azure.database_watcher.shared_private_link_resources
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND watcher_name = '{{ watcher_name }}' -- required
AND shared_private_link_resource_name = '{{ shared_private_link_resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a SharedPrivateLinkResource.

INSERT INTO azure.database_watcher.shared_private_link_resources (
properties,
resource_group_name,
watcher_name,
shared_private_link_resource_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ watcher_name }}',
'{{ shared_private_link_resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete a SharedPrivateLinkResource.

DELETE FROM azure.database_watcher.shared_private_link_resources
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND watcher_name = '{{ watcher_name }}' --required
AND shared_private_link_resource_name = '{{ shared_private_link_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;