links
Creates, updates, deletes, gets or lists a links
resource.
Overview
Name | links |
Type | Resource |
Id | azure_extras.customer_insights.links |
Fields
- vw_links
- links
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
description | text | field from the properties object |
display_name | text | field from the properties object |
hubName | text | field from the properties object |
linkName | text | field from the properties object |
link_name | text | field from the properties object |
mappings | text | field from the properties object |
operation_type | text | field from the properties object |
participant_property_references | text | field from the properties object |
provisioning_state | text | field from the properties object |
reference_only | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source_entity_type | text | field from the properties object |
source_entity_type_name | text | field from the properties object |
subscriptionId | text | field from the properties object |
target_entity_type | text | field from the properties object |
target_entity_type_name | text | field from the properties object |
tenant_id | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
properties | object | The definition of Link. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | hubName, linkName, resourceGroupName, subscriptionId | Gets a link in the hub. |
list_by_hub | SELECT | hubName, resourceGroupName, subscriptionId | Gets all the links in the specified hub. |
create_or_update | INSERT | hubName, linkName, resourceGroupName, subscriptionId | Creates a link or updates an existing link in the hub. |
delete | DELETE | hubName, linkName, resourceGroupName, subscriptionId | Deletes a link in the hub. |
SELECT
examples
Gets all the links in the specified hub.
- vw_links
- links
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 }}';
SELECT
id,
name,
properties,
type
FROM azure_extras.customer_insights.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.customer_insights.links (
hubName,
linkName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ hubName }}',
'{{ linkName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: tenantId
value: string
- name: linkName
value: string
- name: sourceEntityType
value: string
- name: targetEntityType
value: string
- name: sourceEntityTypeName
value: string
- name: targetEntityTypeName
value: string
- name: displayName
value: object
- name: description
value: object
- name: mappings
value:
- - name: sourcePropertyName
value: string
- name: targetPropertyName
value: string
- name: linkType
value: string
- name: participantPropertyReferences
value:
- - name: sourcePropertyName
value: string
- name: targetPropertyName
value: string
- name: provisioningState
value: []
- name: referenceOnly
value: boolean
- name: operationType
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
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 }}';