Skip to main content

time_series_database_connections

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

Overview

Nametime_series_database_connections
TypeResource
Idazure.digital_twins.time_series_database_connections

Fields

NameDatatypeDescription
idtextThe resource identifier.
nametextExtension resource name.
connection_typetextfield from the properties object
identitytextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
timeSeriesDatabaseConnectionNametextfield from the properties object
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionId, timeSeriesDatabaseConnectionNameGet the description of an existing time series database connection.
listSELECTresourceGroupName, resourceName, subscriptionIdGet all existing time series database connections for this DigitalTwins instance.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionId, timeSeriesDatabaseConnectionNameCreate or update a time series database connection.
deleteDELETEresourceGroupName, resourceName, subscriptionId, timeSeriesDatabaseConnectionNameDelete a time series database connection.

SELECT examples

Get all existing time series database connections for this DigitalTwins instance.

SELECT
id,
name,
connection_type,
identity,
provisioning_state,
resourceGroupName,
resourceName,
subscriptionId,
system_data,
timeSeriesDatabaseConnectionName,
type
FROM azure.digital_twins.vw_time_series_database_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.digital_twins.time_series_database_connections (
resourceGroupName,
resourceName,
subscriptionId,
timeSeriesDatabaseConnectionName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ timeSeriesDatabaseConnectionName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified time_series_database_connections resource.

/*+ delete */
DELETE FROM azure.digital_twins.time_series_database_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND timeSeriesDatabaseConnectionName = '{{ timeSeriesDatabaseConnectionName }}';