Skip to main content

sql_pool_sensitivity_labels

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

Overview

Namesql_pool_sensitivity_labels
TypeResource
Idazure.synapse.sql_pool_sensitivity_labels

Fields

NameDatatypeDescription
columnNametextfield from the properties object
column_nametextfield from the properties object
information_typetextfield from the properties object
information_type_idtextfield from the properties object
is_disabledtextfield from the properties object
label_idtextfield from the properties object
label_nametextfield from the properties object
managed_bytextfield from the properties object
ranktextfield from the properties object
resourceGroupNametextfield from the properties object
schemaNametextfield from the properties object
schema_nametextfield from the properties object
sensitivityLabelSourcetextfield from the properties object
sqlPoolNametextfield from the properties object
subscriptionIdtextfield from the properties object
tableNametextfield from the properties object
table_nametextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcolumnName, resourceGroupName, schemaName, sensitivityLabelSource, sqlPoolName, subscriptionId, tableName, workspaceNameGets the sensitivity label of a given column
create_or_updateINSERTcolumnName, resourceGroupName, schemaName, sensitivityLabelSource, sqlPoolName, subscriptionId, tableName, workspaceNameCreates or updates the sensitivity label of a given column in a Sql pool
deleteDELETEcolumnName, resourceGroupName, schemaName, sensitivityLabelSource, sqlPoolName, subscriptionId, tableName, workspaceNameDeletes the sensitivity label of a given column in a Sql pool
updateUPDATEresourceGroupName, sqlPoolName, subscriptionId, workspaceNameUpdate sensitivity labels of a given SQL Pool using an operations batch.
disable_recommendationEXECcolumnName, resourceGroupName, schemaName, sensitivityLabelSource, sqlPoolName, subscriptionId, tableName, workspaceNameDisables sensitivity recommendations on a given column
enable_recommendationEXECcolumnName, resourceGroupName, schemaName, sensitivityLabelSource, sqlPoolName, subscriptionId, tableName, workspaceNameEnables sensitivity recommendations on a given column (recommendations are enabled by default on all columns)

SELECT examples

Gets the sensitivity label of a given column

SELECT
columnName,
column_name,
information_type,
information_type_id,
is_disabled,
label_id,
label_name,
managed_by,
rank,
resourceGroupName,
schemaName,
schema_name,
sensitivityLabelSource,
sqlPoolName,
subscriptionId,
tableName,
table_name,
workspaceName
FROM azure.synapse.vw_sql_pool_sensitivity_labels
WHERE columnName = '{{ columnName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND schemaName = '{{ schemaName }}'
AND sensitivityLabelSource = '{{ sensitivityLabelSource }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND tableName = '{{ tableName }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.sql_pool_sensitivity_labels (
columnName,
resourceGroupName,
schemaName,
sensitivityLabelSource,
sqlPoolName,
subscriptionId,
tableName,
workspaceName,
properties
)
SELECT
'{{ columnName }}',
'{{ resourceGroupName }}',
'{{ schemaName }}',
'{{ sensitivityLabelSource }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ tableName }}',
'{{ workspaceName }}',
'{{ properties }}'
;

UPDATE example

Updates a sql_pool_sensitivity_labels resource.

/*+ update */
UPDATE azure.synapse.sql_pool_sensitivity_labels
SET
operations = '{{ operations }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified sql_pool_sensitivity_labels resource.

/*+ delete */
DELETE FROM azure.synapse.sql_pool_sensitivity_labels
WHERE columnName = '{{ columnName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND schemaName = '{{ schemaName }}'
AND sensitivityLabelSource = '{{ sensitivityLabelSource }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND tableName = '{{ tableName }}'
AND workspaceName = '{{ workspaceName }}';