Skip to main content

data_set_mappings

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

Overview

Namedata_set_mappings
TypeResource
Idazure.data_share.data_set_mappings

Fields

NameDatatypeDescription
idstringThe resource id of the azure resource
namestringName of the azure resource
kindstringKind of data set mapping.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringType of the azure resource

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, dataSetMappingName, resourceGroupName, shareSubscriptionName, subscriptionIdGet a DataSetMapping in a shareSubscription
list_by_share_subscriptionSELECTaccountName, resourceGroupName, shareSubscriptionName, subscriptionIdList DataSetMappings in a share subscription
createINSERTaccountName, dataSetMappingName, resourceGroupName, shareSubscriptionName, subscriptionId, data__kindCreate a DataSetMapping
deleteDELETEaccountName, dataSetMappingName, resourceGroupName, shareSubscriptionName, subscriptionIdDelete a DataSetMapping in a shareSubscription

SELECT examples

List DataSetMappings in a share subscription

SELECT
id,
name,
kind,
systemData,
type
FROM azure.data_share.data_set_mappings
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareSubscriptionName = '{{ shareSubscriptionName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_share.data_set_mappings (
accountName,
dataSetMappingName,
resourceGroupName,
shareSubscriptionName,
subscriptionId,
data__kind,
kind
)
SELECT
'{{ accountName }}',
'{{ dataSetMappingName }}',
'{{ resourceGroupName }}',
'{{ shareSubscriptionName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}'
;

DELETE example

Deletes the specified data_set_mappings resource.

/*+ delete */
DELETE FROM azure.data_share.data_set_mappings
WHERE accountName = '{{ accountName }}'
AND dataSetMappingName = '{{ dataSetMappingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareSubscriptionName = '{{ shareSubscriptionName }}'
AND subscriptionId = '{{ subscriptionId }}';