Recommended Sensitivity Labels - Update
Update recommended sensitivity labels states of a given database using an operations batch.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels?api-version=2023-08-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
database
|
path | True |
string |
The name of the database. |
|
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
server
|
path | True |
string |
The name of the server. |
|
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
|
api-version
|
query | True |
string |
The API version to use for the request. |
Request Body
| Name | Type | Description |
|---|---|---|
| operations |
A recommended sensitivity label update operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Successfully updated recommended sensitivity labels. |
|
| Other Status Codes |
*** Error Responses: ***
|
Examples
Update recommended sensitivity labels of a given database using an operations batch.
Sample request
PATCH https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/recommendedSensitivityLabels?api-version=2023-08-01
{
"operations": [
{
"properties": {
"op": "enable",
"schema": "dbo",
"table": "table1",
"column": "column1"
}
},
{
"properties": {
"op": "enable",
"schema": "dbo",
"table": "table2",
"column": "column2"
}
},
{
"properties": {
"op": "disable",
"schema": "dbo",
"table": "table1",
"column": "column3"
}
}
]
}
Sample response
Definitions
| Name | Description |
|---|---|
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Recommended |
A recommended sensitivity label update operation. |
|
Recommended |
|
|
Recommended |
A list of recommended sensitivity label update operations. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
RecommendedSensitivityLabelUpdate
A recommended sensitivity label update operation.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource ID. |
| name |
string |
Resource name. |
| properties.column |
string |
Column name to update. |
| properties.op | ||
| properties.schema |
string |
Schema name of the column to update. |
| properties.table |
string |
Table name of the column to update. |
| type |
string |
Resource type. |
RecommendedSensitivityLabelUpdateKind
| Value | Description |
|---|---|
| enable | |
| disable |
RecommendedSensitivityLabelUpdateList
A list of recommended sensitivity label update operations.
| Name | Type | Description |
|---|---|---|
| operations |
A recommended sensitivity label update operation. |