Skip to main content

relationships

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

Overview

Namerelationships
TypeResource
Idazure_extras.customer_insights.relationships

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
cardinalitytextfield from the properties object
display_nametextfield from the properties object
expiry_date_time_utctextfield from the properties object
fieldstextfield from the properties object
hubNametextfield from the properties object
lookup_mappingstextfield from the properties object
profile_typetextfield from the properties object
provisioning_statetextfield from the properties object
related_profile_typetextfield from the properties object
relationshipNametextfield from the properties object
relationship_guid_idtextfield from the properties object
relationship_nametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECThubName, relationshipName, resourceGroupName, subscriptionIdGets information about the specified relationship.
list_by_hubSELECThubName, resourceGroupName, subscriptionIdGets all relationships in the hub.
create_or_updateINSERThubName, relationshipName, resourceGroupName, subscriptionIdCreates a relationship or updates an existing relationship within a hub.
deleteDELETEhubName, relationshipName, resourceGroupName, subscriptionIdDeletes a relationship within a hub.

SELECT examples

Gets all relationships in the hub.

SELECT
id,
name,
description,
cardinality,
display_name,
expiry_date_time_utc,
fields,
hubName,
lookup_mappings,
profile_type,
provisioning_state,
related_profile_type,
relationshipName,
relationship_guid_id,
relationship_name,
resourceGroupName,
subscriptionId,
tenant_id,
type
FROM azure_extras.customer_insights.vw_relationships
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified relationships resource.

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