Skip to main content

datasets

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

Overview

Namedatasets
TypeResource
Idazure.data_factory.datasets

Fields

NameDatatypeDescription
idtextThe resource identifier.
nametextThe resource name.
descriptiontextfield from the properties object
annotationstextfield from the properties object
datasetNametextfield from the properties object
etagtextEtag identifies change in the resource.
factoryNametextfield from the properties object
foldertextfield from the properties object
linked_service_nametextfield from the properties object
parameterstextfield from the properties object
resourceGroupNametextfield from the properties object
schematextfield from the properties object
structuretextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatasetName, factoryName, resourceGroupName, subscriptionIdGets a dataset.
list_by_factorySELECTfactoryName, resourceGroupName, subscriptionIdLists datasets.
create_or_updateINSERTdatasetName, factoryName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a dataset.
deleteDELETEdatasetName, factoryName, resourceGroupName, subscriptionIdDeletes a dataset.

SELECT examples

Lists datasets.

SELECT
id,
name,
description,
annotations,
datasetName,
etag,
factoryName,
folder,
linked_service_name,
parameters,
resourceGroupName,
schema,
structure,
subscriptionId,
type
FROM azure.data_factory.vw_datasets
WHERE factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_factory.datasets (
datasetName,
factoryName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ datasetName }}',
'{{ factoryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified datasets resource.

/*+ delete */
DELETE FROM azure.data_factory.datasets
WHERE datasetName = '{{ datasetName }}'
AND factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';