Skip to main content

relationship_links

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

Overview

Namerelationship_links
TypeResource
Idazure_extras.customer_insights.relationship_links

Fields

The following fields are returned by SELECT queries:

OK. Successfully get the relationship link.

NameDatatypeDescription
idstringResource ID.
namestringResource name.
propertiesobjectThe definition of relationship link.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, hubName, relationshipLinkName, subscriptionIdGets information about the specified relationship Link.
list_by_hubselectresourceGroupName, hubName, subscriptionIdGets all relationship links in the hub.
create_or_updateinsertresourceGroupName, hubName, relationshipLinkName, subscriptionIdCreates a relationship link or updates an existing relationship link within a hub.
deletedeleteresourceGroupName, hubName, relationshipLinkName, subscriptionIdDeletes a relationship link within a hub.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hubNamestringThe name of the hub.
relationshipLinkNamestringThe name of the relationship.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringGets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Gets information about the specified relationship Link.

SELECT
id,
name,
properties,
type
FROM azure_extras.customer_insights.relationship_links
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND hubName = '{{ hubName }}' -- required
AND relationshipLinkName = '{{ relationshipLinkName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a relationship link or updates an existing relationship link within a hub.

INSERT INTO azure_extras.customer_insights.relationship_links (
data__properties,
resourceGroupName,
hubName,
relationshipLinkName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ hubName }}',
'{{ relationshipLinkName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Deletes a relationship link within a hub.

DELETE FROM azure_extras.customer_insights.relationship_links
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND hubName = '{{ hubName }}' --required
AND relationshipLinkName = '{{ relationshipLinkName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;