Skip to main content

connector_mappings

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

Overview

Nameconnector_mappings
TypeResource
Idazure_extras.customer_insights.connector_mappings

Fields

The following fields are returned by SELECT queries:

OK. Successfully get the connector mapping.

NameDatatypeDescription
idstringResource ID.
namestringResource name.
propertiesobjectThe connector mapping definition.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, hubName, connectorName, mappingName, subscriptionIdGets a connector mapping in the connector.
list_by_connectorselectresourceGroupName, hubName, connectorName, subscriptionIdGets all the connector mappings in the specified connector.
create_or_updateinsertresourceGroupName, hubName, connectorName, mappingName, subscriptionIdCreates a connector mapping or updates an existing connector mapping in the connector.
deletedeleteresourceGroupName, hubName, connectorName, mappingName, subscriptionIdDeletes a connector mapping in the connector.

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
connectorNamestringThe name of the connector.
hubNamestringThe name of the hub.
mappingNamestringThe name of the connector mapping.
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 connector mapping in the connector.

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

INSERT examples

Creates a connector mapping or updates an existing connector mapping in the connector.

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

DELETE examples

Deletes a connector mapping in the connector.

DELETE FROM azure_extras.customer_insights.connector_mappings
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND hubName = '{{ hubName }}' --required
AND connectorName = '{{ connectorName }}' --required
AND mappingName = '{{ mappingName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;