Skip to main content

data_products

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

Overview

Namedata_products
TypeResource
Idazure.network_analytics.data_products

Fields

NameDatatypeDescription
available_minor_versionstextfield from the properties object
consumption_endpointstextfield from the properties object
current_minor_versiontextfield from the properties object
customer_encryption_keytextfield from the properties object
customer_managed_key_encryption_enabledtextfield from the properties object
dataProductNametextfield from the properties object
documentationtextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
key_vault_urltextfield from the properties object
locationtextThe geo-location where the resource lives
major_versiontextfield from the properties object
managed_resource_group_configurationtextfield from the properties object
networkaclstextfield from the properties object
ownerstextfield from the properties object
private_links_enabledtextfield from the properties object
producttextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
publishertextfield from the properties object
purview_accounttextfield from the properties object
purview_collectiontextfield from the properties object
redundancytextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataProductName, resourceGroupName, subscriptionIdRetrieve data product resource.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList data products by resource group.
list_by_subscriptionSELECTsubscriptionIdList data products by subscription.
createINSERTdataProductName, resourceGroupName, subscriptionIdCreate data product resource.
deleteDELETEdataProductName, resourceGroupName, subscriptionIdDelete data product resource.
updateUPDATEdataProductName, resourceGroupName, subscriptionIdUpdate data product resource.
add_user_roleEXECdataProductName, resourceGroupName, subscriptionId, data__dataTypeScope, data__principalId, data__principalType, data__role, data__roleId, data__userNameAssign role to the data product.
generate_storage_account_sas_tokenEXECdataProductName, resourceGroupName, subscriptionId, data__expiryTimeStamp, data__ipAddress, data__startTimeStampGenerate sas token for storage account.
remove_user_roleEXECdataProductName, resourceGroupName, subscriptionId, data__dataTypeScope, data__principalId, data__principalType, data__role, data__roleAssignmentId, data__roleId, data__userNameRemove role from the data product.
rotate_keyEXECdataProductName, resourceGroupName, subscriptionId, data__keyVaultUrlInitiate key rotation on Data Product.

SELECT examples

List data products by subscription.

SELECT
available_minor_versions,
consumption_endpoints,
current_minor_version,
customer_encryption_key,
customer_managed_key_encryption_enabled,
dataProductName,
documentation,
identity,
key_vault_url,
location,
major_version,
managed_resource_group_configuration,
networkacls,
owners,
private_links_enabled,
product,
provisioning_state,
public_network_access,
publisher,
purview_account,
purview_collection,
redundancy,
resourceGroupName,
resource_guid,
subscriptionId,
tags
FROM azure.network_analytics.vw_data_products
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network_analytics.data_products (
dataProductName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ dataProductName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a data_products resource.

/*+ update */
UPDATE azure.network_analytics.data_products
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
dataProductName = '{{ dataProductName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified data_products resource.

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