Skip to main content

datasets

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

Overview

Namedatasets
TypeResource
Idazure.data_factory.datasets

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
idstringThe resource identifier.
namestringThe resource name.
etagstringEtag identifies change in the resource.
propertiesobjectDataset properties.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, factoryName, datasetNameapi-version, If-None-MatchGets a dataset.
list_by_factoryselectsubscriptionId, resourceGroupName, factoryNameapi-versionLists datasets.
create_or_updateinsertsubscriptionId, resourceGroupName, factoryName, datasetName, data__propertiesapi-version, If-MatchCreates or updates a dataset.
deletedeletesubscriptionId, resourceGroupName, factoryName, datasetNameapi-versionDeletes a dataset.

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
datasetNamestringThe dataset name.
factoryNamestringThe factory name.
resourceGroupNamestringThe resource group name.
subscriptionIdstringThe subscription identifier.
If-MatchstringETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
If-None-MatchstringETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
api-versionstringThe API version.

SELECT examples

Gets a dataset.

SELECT
id,
name,
etag,
properties,
type
FROM azure.data_factory.datasets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND factoryName = '{{ factoryName }}' -- required
AND datasetName = '{{ datasetName }}' -- required
AND api-version = '{{ api-version }}'
AND If-None-Match = '{{ If-None-Match }}'
;

INSERT examples

Creates or updates a dataset.

INSERT INTO azure.data_factory.datasets (
data__properties,
subscriptionId,
resourceGroupName,
factoryName,
datasetName,
api-version,
If-Match
)
SELECT
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ factoryName }}',
'{{ datasetName }}',
'{{ api-version }}',
'{{ If-Match }}'
RETURNING
id,
name,
etag,
properties,
type
;

DELETE examples

Deletes a dataset.

DELETE FROM azure.data_factory.datasets
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND factoryName = '{{ factoryName }}' --required
AND datasetName = '{{ datasetName }}' --required
AND api-version = '{{ api-version }}'
;