Skip to main content

reference_data_sets

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

Overview

Namereference_data_sets
TypeResource
Idazure.time_series_insights.reference_data_sets

Fields

The following fields are returned by SELECT queries:

The reference data set definition was successfully retrieved and is in the response.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectProperties of the reference data set.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, environmentName, referenceDataSetNameGets the reference data set with the specified name in the specified environment.
list_by_environmentselectsubscriptionId, resourceGroupName, environmentNameLists all the available reference data sets associated with the subscription and within the specified resource group and environment.
create_or_updateinsertsubscriptionId, resourceGroupName, environmentName, referenceDataSetName, data__propertiesCreate or update a reference data set in the specified environment.
updateupdatesubscriptionId, resourceGroupName, environmentName, referenceDataSetNameUpdates the reference data set with the specified name in the specified subscription, resource group, and environment.
deletedeletesubscriptionId, resourceGroupName, environmentName, referenceDataSetNameDeletes the reference data set with the specified name in the specified subscription, resource group, and environment

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
environmentNamestringThe name of the Time Series Insights environment associated with the specified resource group.
referenceDataSetNamestringThe name of the Time Series Insights reference data set associated with the specified environment.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the reference data set with the specified name in the specified environment.

SELECT
location,
properties,
tags
FROM azure.time_series_insights.reference_data_sets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND environmentName = '{{ environmentName }}' -- required
AND referenceDataSetName = '{{ referenceDataSetName }}' -- required
;

INSERT examples

Create or update a reference data set in the specified environment.

INSERT INTO azure.time_series_insights.reference_data_sets (
data__properties,
data__location,
data__tags,
subscriptionId,
resourceGroupName,
environmentName,
referenceDataSetName
)
SELECT
'{{ properties }}' /* required */,
'{{ location }}',
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ environmentName }}',
'{{ referenceDataSetName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Updates the reference data set with the specified name in the specified subscription, resource group, and environment.

UPDATE azure.time_series_insights.reference_data_sets
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND environmentName = '{{ environmentName }}' --required
AND referenceDataSetName = '{{ referenceDataSetName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Deletes the reference data set with the specified name in the specified subscription, resource group, and environment

DELETE FROM azure.time_series_insights.reference_data_sets
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND environmentName = '{{ environmentName }}' --required
AND referenceDataSetName = '{{ referenceDataSetName }}' --required
;