Skip to main content

data_products

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

Overview

Namedata_products
TypeResource
Idazure_extras.network_analytics.data_products

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
availableMinorVersionsarrayList of available minor versions of the data product resource.
consumptionEndpointsobjectResource links which exposed to the customer to query the data.
currentMinorVersionstringCurrent configured minor version of the data product resource.
customerEncryptionKeyobjectCustomer managed encryption key details for data product.
customerManagedKeyEncryptionEnabledstringFlag to enable customer managed key encryption for data product. Known values are: "Enabled" and "Disabled".
documentationstringDocumentation link for the data product based on definition file.
identityobjectThe managed service identities assigned to this resource.
keyVaultUrlstringKey vault url.
locationstringThe geo-location where the resource lives. Required.
majorVersionstringMajor version of data product. Required.
managedResourceGroupConfigurationobjectManaged resource group configuration.
networkaclsobjectNetwork rule set for data product.
ownersarrayList of name or email associated with data product resource deployment.
privateLinksEnabledstringFlag to enable or disable private link for data product resource. Known values are: "Enabled" and "Disabled".
productstringProduct name of data product. Required.
provisioningStatestringLatest provisioning state of data product. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted".
publicNetworkAccessstringFlag to enable or disable public access of data product resource. Known values are: "Enabled" and "Disabled".
publisherstringData product publisher name. Required.
purviewAccountstringPurview account url for data product to connect to.
purviewCollectionstringPurview collection url for data product to connect to.
redundancystringFlag to enable or disable redundancy for data product. Known values are: "Enabled" and "Disabled".
resourceGuidstringThe resource GUID property of the data product resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, data_product_name, subscription_idRetrieve data product resource.
list_by_resource_groupselectresource_group_name, subscription_idList data products by resource group.
list_by_subscriptionselectsubscription_idList data products by subscription.
createinsertresource_group_name, data_product_name, subscription_id, locationCreate data product resource.
updateupdateresource_group_name, data_product_name, subscription_idUpdate data product resource.
deletedeleteresource_group_name, data_product_name, subscription_idDelete data product resource.
list_roles_assignmentsexecresource_group_name, data_product_name, subscription_idList user roles associated with the data product.
add_user_roleexecresource_group_name, data_product_name, subscription_id, roleId, principalId, userName, dataTypeScope, principalType, roleAssign role to the data product.
generate_storage_account_sas_tokenexecresource_group_name, data_product_name, subscription_id, startTimeStamp, expiryTimeStamp, ipAddressGenerate sas token for storage account.
remove_user_roleexecresource_group_name, data_product_name, subscription_id, roleId, principalId, userName, dataTypeScope, principalType, role, roleAssignmentIdRemove role from the data product.
rotate_keyexecresource_group_name, data_product_name, subscription_id, 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
data_product_namestringThe data product resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieve data product resource.

SELECT
id,
name,
availableMinorVersions,
consumptionEndpoints,
currentMinorVersion,
customerEncryptionKey,
customerManagedKeyEncryptionEnabled,
documentation,
identity,
keyVaultUrl,
location,
majorVersion,
managedResourceGroupConfiguration,
networkacls,
owners,
privateLinksEnabled,
product,
provisioningState,
publicNetworkAccess,
publisher,
purviewAccount,
purviewCollection,
redundancy,
resourceGuid,
systemData,
tags,
type
FROM azure_extras.network_analytics.data_products
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND data_product_name = '{{ data_product_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create data product resource.

INSERT INTO azure_extras.network_analytics.data_products (
tags,
location,
properties,
identity,
resource_group_name,
data_product_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ data_product_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update data product resource.

UPDATE azure_extras.network_analytics.data_products
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND data_product_name = '{{ data_product_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete data product resource.

DELETE FROM azure_extras.network_analytics.data_products
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND data_product_name = '{{ data_product_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List user roles associated with the data product.

EXEC azure_extras.network_analytics.data_products.list_roles_assignments 
@resource_group_name='{{ resource_group_name }}' --required,
@data_product_name='{{ data_product_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;