Skip to main content

private_link_scoped_resources

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

Overview

Nameprivate_link_scoped_resources
TypeResource
Idazure.monitor.private_link_scoped_resources

Fields

NameDatatypeDescription
idtextAzure resource Id
nametextAzure resource name
linked_resource_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
scopeNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextAzure resource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, scopeName, subscriptionIdGets a scoped resource in a private link scope.
list_by_private_link_scopeSELECTresourceGroupName, scopeName, subscriptionIdGets all private endpoint connections on a private link scope.
create_or_updateINSERTname, resourceGroupName, scopeName, subscriptionIdApprove or reject a private endpoint connection with a given name.
deleteDELETEname, resourceGroupName, scopeName, subscriptionIdDeletes a private endpoint connection with a given name.

SELECT examples

Gets all private endpoint connections on a private link scope.

SELECT
id,
name,
linked_resource_id,
provisioning_state,
resourceGroupName,
scopeName,
subscriptionId,
system_data,
type
FROM azure.monitor.vw_private_link_scoped_resources
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND scopeName = '{{ scopeName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.monitor.private_link_scoped_resources (
name,
resourceGroupName,
scopeName,
subscriptionId,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ scopeName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified private_link_scoped_resources resource.

/*+ delete */
DELETE FROM azure.monitor.private_link_scoped_resources
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scopeName = '{{ scopeName }}'
AND subscriptionId = '{{ subscriptionId }}';