Skip to main content

private_link_hubs

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

Overview

Nameprivate_link_hubs
TypeResource
Idazure.synapse.private_link_hubs

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
privateLinkHubNametextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTprivateLinkHubName, resourceGroupName, subscriptionIdGets a privateLinkHub
listSELECTsubscriptionIdReturns a list of privateLinkHubs in a subscription
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns a list of privateLinkHubs in a resource group
create_or_updateINSERTprivateLinkHubName, resourceGroupName, subscriptionIdCreates or updates a privateLinkHub
deleteDELETEprivateLinkHubName, resourceGroupName, subscriptionIdDeletes a privateLinkHub
updateUPDATEprivateLinkHubName, resourceGroupName, subscriptionIdUpdates a privateLinkHub

SELECT examples

Returns a list of privateLinkHubs in a subscription

SELECT
location,
privateLinkHubName,
private_endpoint_connections,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.synapse.vw_private_link_hubs
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.private_link_hubs (
privateLinkHubName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ privateLinkHubName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a private_link_hubs resource.

/*+ update */
UPDATE azure.synapse.private_link_hubs
SET
tags = '{{ tags }}'
WHERE
privateLinkHubName = '{{ privateLinkHubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified private_link_hubs resource.

/*+ delete */
DELETE FROM azure.synapse.private_link_hubs
WHERE privateLinkHubName = '{{ privateLinkHubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';