Skip to main content

links

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

Overview

Namelinks
TypeResource
Idazure_extras.customer_insights.links

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
display_nametextfield from the properties object
hubNametextfield from the properties object
linkNametextfield from the properties object
link_nametextfield from the properties object
mappingstextfield from the properties object
operation_typetextfield from the properties object
participant_property_referencestextfield from the properties object
provisioning_statetextfield from the properties object
reference_onlytextfield from the properties object
resourceGroupNametextfield from the properties object
source_entity_typetextfield from the properties object
source_entity_type_nametextfield from the properties object
subscriptionIdtextfield from the properties object
target_entity_typetextfield from the properties object
target_entity_type_nametextfield from the properties object
tenant_idtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECThubName, linkName, resourceGroupName, subscriptionIdGets a link in the hub.
list_by_hubSELECThubName, resourceGroupName, subscriptionIdGets all the links in the specified hub.
create_or_updateINSERThubName, linkName, resourceGroupName, subscriptionIdCreates a link or updates an existing link in the hub.
deleteDELETEhubName, linkName, resourceGroupName, subscriptionIdDeletes a link in the hub.

SELECT examples

Gets all the links in the specified hub.

SELECT
id,
name,
description,
display_name,
hubName,
linkName,
link_name,
mappings,
operation_type,
participant_property_references,
provisioning_state,
reference_only,
resourceGroupName,
source_entity_type,
source_entity_type_name,
subscriptionId,
target_entity_type,
target_entity_type_name,
tenant_id,
type
FROM azure_extras.customer_insights.vw_links
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.customer_insights.links (
hubName,
linkName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ hubName }}',
'{{ linkName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified links resource.

/*+ delete */
DELETE FROM azure_extras.customer_insights.links
WHERE hubName = '{{ hubName }}'
AND linkName = '{{ linkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';