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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource id of the azure resource.
namestringName of the azure resource.
kindstringKind of data set mapping. Required. Known values are: "Blob", "Container", "BlobFolder", "AdlsGen2FileSystem", "AdlsGen2Folder", "AdlsGen2File", "KustoCluster", "KustoDatabase", "SqlDBTable", "SqlDWTable", and "SynapseWorkspaceSqlPoolTable".
systemDataobjectSystem Data of the Azure resource.
typestringType of the azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, share_subscription_name, data_set_mapping_name, subscription_idGet DataSetMapping in a shareSubscription. Get a DataSetMapping in a shareSubscription.
list_by_share_subscriptionselectresource_group_name, account_name, share_subscription_name, subscription_id$skipToken, $filter, $orderbyList DataSetMappings in a share subscription. List DataSetMappings in a share subscription.
createinsertresource_group_name, account_name, share_subscription_name, data_set_mapping_name, subscription_id, kindMaps a source data set in the source share to a sink data set in the share subscription. Enables copying the data set from source to destination. Create a DataSetMapping.
deletedeleteresource_group_name, account_name, share_subscription_name, data_set_mapping_name, subscription_idDelete DataSetMapping in a shareSubscription. Delete a DataSetMapping in a shareSubscription.

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
account_namestringThe name of the share account. Required.
data_set_mapping_namestringThe name of the dataSetMapping. Required.
resource_group_namestringThe resource group name. Required.
share_subscription_namestringThe name of the shareSubscription. Required.
subscription_idstring
$filterstringFilters the results using OData syntax. Default value is None.
$orderbystringSorts the results using OData syntax. Default value is None.
$skipTokenstringContinuation token. Default value is None.

SELECT examples

Get DataSetMapping in a shareSubscription. Get a DataSetMapping in a shareSubscription.

SELECT
id,
name,
kind,
systemData,
type
FROM azure.data_share.data_set_mappings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND share_subscription_name = '{{ share_subscription_name }}' -- required
AND data_set_mapping_name = '{{ data_set_mapping_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Maps a source data set in the source share to a sink data set in the share subscription. Enables copying the data set from source to destination. Create a DataSetMapping.

INSERT INTO azure.data_share.data_set_mappings (
kind,
resource_group_name,
account_name,
share_subscription_name,
data_set_mapping_name,
subscription_id
)
SELECT
'{{ kind }}' /* required */,
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ share_subscription_name }}',
'{{ data_set_mapping_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
kind,
systemData,
type
;

DELETE examples

Delete DataSetMapping in a shareSubscription. Delete a DataSetMapping in a shareSubscription.

DELETE FROM azure.data_share.data_set_mappings
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND share_subscription_name = '{{ share_subscription_name }}' --required
AND data_set_mapping_name = '{{ data_set_mapping_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;