Managed Database Recommended Sensitivity Labels - Update
使用作批处理更新给定数据库的推荐敏感度标签状态。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels?api-version=2023-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
database
|
path | True |
string |
数据库的名称。 |
|
managed
|
path | True |
string |
托管实例的名称。 |
|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
请求正文
| 名称 | 类型 | 说明 |
|---|---|---|
| operations |
建议的敏感度标签更新作。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已成功更新推荐的敏感度标签。 |
|
| Other Status Codes |
错误响应: ***
|
示例
Update recommended sensitivity labels of a given database using an operations batch.
示例请求
PATCH https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/recommendedSensitivityLabels?api-version=2023-08-01
{
"operations": [
{
"properties": {
"op": "enable",
"schema": "dbo",
"table": "table1",
"column": "column1"
}
},
{
"properties": {
"op": "disable",
"schema": "dbo",
"table": "table2",
"column": "column2"
}
},
{
"properties": {
"op": "disable",
"schema": "dbo",
"table": "Table1",
"column": "Column3"
}
}
]
}
示例响应
定义
| 名称 | 说明 |
|---|---|
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Recommended |
建议的敏感度标签更新作。 |
|
Recommended |
|
|
Recommended |
建议的敏感度标签更新作的列表。 |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
RecommendedSensitivityLabelUpdate
建议的敏感度标签更新作。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| name |
string |
资源名称。 |
| properties.column |
string |
要更新的列名。 |
| properties.op | ||
| properties.schema |
string |
要更新的列的架构名称。 |
| properties.table |
string |
要更新的列的表名。 |
| type |
string |
资源类型。 |
RecommendedSensitivityLabelUpdateKind
| 值 | 说明 |
|---|---|
| enable | |
| disable |
RecommendedSensitivityLabelUpdateList
建议的敏感度标签更新作的列表。
| 名称 | 类型 | 说明 |
|---|---|---|
| operations |
建议的敏感度标签更新作。 |