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.db_watcher.shared_private_link_resources

Fields

NameDatatypeDescription
dns_zonetextfield from the properties object
group_idtextfield from the properties object
private_link_resource_idtextfield from the properties object
provisioning_statetextfield from the properties object
request_messagetextfield from the properties object
resourceGroupNametextfield from the properties object
sharedPrivateLinkResourceNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
watcherNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, sharedPrivateLinkResourceName, subscriptionId, watcherNameGet a SharedPrivateLinkResource
list_by_watcherSELECTresourceGroupName, subscriptionId, watcherNameList SharedPrivateLinkResource resources by Watcher
createINSERTresourceGroupName, sharedPrivateLinkResourceName, subscriptionId, watcherNameCreate a SharedPrivateLinkResource
deleteDELETEresourceGroupName, sharedPrivateLinkResourceName, subscriptionId, watcherNameDelete a SharedPrivateLinkResource

SELECT examples

List SharedPrivateLinkResource resources by Watcher

SELECT
dns_zone,
group_id,
private_link_resource_id,
provisioning_state,
request_message,
resourceGroupName,
sharedPrivateLinkResourceName,
status,
subscriptionId,
watcherName
FROM azure.db_watcher.vw_shared_private_link_resources
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND watcherName = '{{ watcherName }}';

INSERT example

Use the following StackQL query and manifest file to create a new shared_private_link_resources resource.

/*+ create */
INSERT INTO azure.db_watcher.shared_private_link_resources (
resourceGroupName,
sharedPrivateLinkResourceName,
subscriptionId,
watcherName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ sharedPrivateLinkResourceName }}',
'{{ subscriptionId }}',
'{{ watcherName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified shared_private_link_resources resource.

/*+ delete */
DELETE FROM azure.db_watcher.shared_private_link_resources
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sharedPrivateLinkResourceName = '{{ sharedPrivateLinkResourceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND watcherName = '{{ watcherName }}';