Sql Pool Sensitivity Labels - Enable Recommendation

Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns)

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/recommended/enable?api-version=2021-06-01

URI Parameters

Name In Required Type Description
columnName
path True

string

The name of the column.

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

schemaName
path True

string

The name of the schema.

sensitivityLabelSource
path True

WritableSensitivityLabelSource

The source of the sensitivity label.

sqlPoolName
path True

string

SQL pool name

subscriptionId
path True

string

The ID of the target subscription.

tableName
path True

string

The name of the table.

workspaceName
path True

string

The name of the workspace.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

Successfully enabled the sensitivity recommendations on the given column.

Other Status Codes

*** Error Responses: ***

  • 400 DatawarehouseDatabaseIsDeactivated - Could not execute Data Classification operation because the database is paused. Please resume it.

  • 404 SensitivityLabelsColumnNotFound - The specified column could not be found

  • 404 SubscriptionDoesNotHaveServer - The requested server was not found

  • 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.

Examples

Enables sensitivity recommendations on a given column

Sample Request

POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/recommended/enable?api-version=2021-06-01

Sample Response

Definitions

WritableSensitivityLabelSource

The source of the sensitivity label.

Name Type Description
recommended

string