Skip to main content

datasets

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

Overview

Namedatasets
TypeResource
Idazure.iot_data_processor.datasets

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
datasetNametextfield from the properties object
extended_locationtextfield from the properties object
instanceNametextfield from the properties object
keystextfield from the properties object
locationtextThe geo-location where the resource lives
payloadtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
timestamptextfield from the properties object
ttltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatasetName, instanceName, resourceGroupName, subscriptionIdGet a Dataset
create_or_updateINSERTdatasetName, instanceName, resourceGroupName, subscriptionId, data__extendedLocationCreate a Dataset
deleteDELETEdatasetName, instanceName, resourceGroupName, subscriptionIdDelete a Dataset
updateUPDATEdatasetName, instanceName, resourceGroupName, subscriptionIdUpdate a Dataset

SELECT examples

Get a Dataset

SELECT
description,
datasetName,
extended_location,
instanceName,
keys,
location,
payload,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
timestamp,
ttl
FROM azure.iot_data_processor.vw_datasets
WHERE datasetName = '{{ datasetName }}'
AND instanceName = '{{ instanceName }}'
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.iot_data_processor.datasets (
datasetName,
instanceName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ datasetName }}',
'{{ instanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a datasets resource.

/*+ update */
UPDATE azure.iot_data_processor.datasets
SET
tags = '{{ tags }}'
WHERE
datasetName = '{{ datasetName }}'
AND instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified datasets resource.

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