Skip to main content

links

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

Overview

Namelinks
TypeResource
Idazure_extras.customer_insights.links

Fields

The following fields are returned by SELECT queries:

OK. Successfully get the link.

NameDatatypeDescription
idstringResource ID.
namestringResource name.
propertiesobjectThe definition of Link.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, hubName, linkName, subscriptionIdGets a link in the hub.
list_by_hubselectresourceGroupName, hubName, subscriptionIdGets all the links in the specified hub.
create_or_updateinsertresourceGroupName, hubName, linkName, subscriptionIdCreates a link or updates an existing link in the hub.
deletedeleteresourceGroupName, hubName, linkName, subscriptionIdDeletes a link in the 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.
linkNamestringThe name of the link.
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 a link in the hub.

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

INSERT examples

Creates a link or updates an existing link in the hub.

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

DELETE examples

Deletes a link in the hub.

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