Skip to main content

data_types

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

Overview

Namedata_types
TypeResource
Idazure.network_analytics.data_types

Fields

NameDatatypeDescription
dataProductNametextfield from the properties object
dataTypeNametextfield from the properties object
database_cache_retentiontextfield from the properties object
database_retentiontextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statetextfield from the properties object
state_reasontextfield from the properties object
storage_output_retentiontextfield from the properties object
subscriptionIdtextfield from the properties object
visualization_urltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataProductName, dataTypeName, resourceGroupName, subscriptionIdRetrieve data type resource.
list_by_data_productSELECTdataProductName, resourceGroupName, subscriptionIdList data type by parent resource.
createINSERTdataProductName, dataTypeName, resourceGroupName, subscriptionIdCreate data type resource.
deleteDELETEdataProductName, dataTypeName, resourceGroupName, subscriptionIdDelete data type resource.
updateUPDATEdataProductName, dataTypeName, resourceGroupName, subscriptionIdUpdate data type resource.
generate_storage_container_sas_tokenEXECdataProductName, dataTypeName, resourceGroupName, subscriptionId, data__expiryTimeStamp, data__ipAddress, data__startTimeStampGenerate sas token for storage container.

SELECT examples

List data type by parent resource.

SELECT
dataProductName,
dataTypeName,
database_cache_retention,
database_retention,
provisioning_state,
resourceGroupName,
state,
state_reason,
storage_output_retention,
subscriptionId,
visualization_url
FROM azure.network_analytics.vw_data_types
WHERE dataProductName = '{{ dataProductName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network_analytics.data_types (
dataProductName,
dataTypeName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ dataProductName }}',
'{{ dataTypeName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a data_types resource.

/*+ update */
UPDATE azure.network_analytics.data_types
SET
properties = '{{ properties }}'
WHERE
dataProductName = '{{ dataProductName }}'
AND dataTypeName = '{{ dataTypeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified data_types resource.

/*+ delete */
DELETE FROM azure.network_analytics.data_types
WHERE dataProductName = '{{ dataProductName }}'
AND dataTypeName = '{{ dataTypeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';