Skip to main content

data_sets

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

Overview

Namedata_sets
TypeResource
Idazure.data_share.data_sets

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, dataSetName, resourceGroupName, shareName, subscriptionIdGet a DataSet in a share
list_by_shareSELECTaccountName, resourceGroupName, shareName, subscriptionIdList DataSets in a share
createINSERTaccountName, dataSetName, resourceGroupName, shareName, subscriptionId, data__kindCreate a DataSet
deleteDELETEaccountName, dataSetName, resourceGroupName, shareName, subscriptionIdDelete a DataSet in a share

SELECT examples

List DataSets in a share

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

INSERT example

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

/*+ create */
INSERT INTO azure.data_share.data_sets (
accountName,
dataSetName,
resourceGroupName,
shareName,
subscriptionId,
data__kind,
kind
)
SELECT
'{{ accountName }}',
'{{ dataSetName }}',
'{{ resourceGroupName }}',
'{{ shareName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}'
;

DELETE example

Deletes the specified data_sets resource.

/*+ delete */
DELETE FROM azure.data_share.data_sets
WHERE accountName = '{{ accountName }}'
AND dataSetName = '{{ dataSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareName = '{{ shareName }}'
AND subscriptionId = '{{ subscriptionId }}';