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

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, dataProductNameRetrieve data product resource.
list_by_resource_groupselectsubscriptionId, resourceGroupNameList data products by resource group.
list_by_subscriptionselectsubscriptionIdList data products by subscription.
createinsertsubscriptionId, resourceGroupName, dataProductNameCreate data product resource.
updateupdatesubscriptionId, resourceGroupName, dataProductNameUpdate data product resource.
deletedeletesubscriptionId, resourceGroupName, dataProductNameDelete data product resource.
add_user_roleexecsubscriptionId, resourceGroupName, dataProductName, roleId, principalId, userName, dataTypeScope, principalType, roleAssign role to the data product.
generate_storage_account_sas_tokenexecsubscriptionId, resourceGroupName, dataProductName, startTimeStamp, expiryTimeStamp, ipAddressGenerate sas token for storage account.
remove_user_roleexecsubscriptionId, resourceGroupName, dataProductName, roleId, principalId, userName, dataTypeScope, principalType, role, roleAssignmentIdRemove role from the data product.
rotate_keyexecsubscriptionId, resourceGroupName, dataProductName, keyVaultUrlInitiate key rotation on Data Product.

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
dataProductNamestringThe data product resource name
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Retrieve data product resource.

SELECT
identity,
location,
properties,
tags
FROM azure.network_analytics.data_products
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND dataProductName = '{{ dataProductName }}' -- required
;

INSERT examples

Create data product resource.

INSERT INTO azure.network_analytics.data_products (
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
dataProductName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ dataProductName }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Update data product resource.

UPDATE azure.network_analytics.data_products
SET
data__identity = '{{ identity }}',
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dataProductName = '{{ dataProductName }}' --required
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Delete data product resource.

DELETE FROM azure.network_analytics.data_products
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dataProductName = '{{ dataProductName }}' --required
;

Lifecycle Methods

Assign role to the data product.

EXEC azure.network_analytics.data_products.add_user_role 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@dataProductName='{{ dataProductName }}' --required
@@json=
'{
"roleId": "{{ roleId }}",
"principalId": "{{ principalId }}",
"userName": "{{ userName }}",
"dataTypeScope": "{{ dataTypeScope }}",
"principalType": "{{ principalType }}",
"role": "{{ role }}"
}'
;