Managed Database Sensitivity Labels - Update
작업 일괄 처리를 사용하여 지정된 데이터베이스의 민감도 레이블을 업데이트합니다.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels?api-version=2021-11-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
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 버전입니다. |
요청 본문
Name | 형식 | Description |
---|---|---|
operations |
민감도 레이블 업데이트 작업입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
민감도 레이블을 업데이트했습니다. |
|
Other Status Codes |
오류 응답: ***
|
예제
Update 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/currentSensitivityLabels?api-version=2021-11-01
{
"operations": [
{
"properties": {
"op": "set",
"schema": "dbo",
"table": "table1",
"column": "column1",
"sensitivityLabel": {
"properties": {
"labelName": "Highly Confidential",
"labelId": "3A477B16-9423-432B-AA97-6069B481CEC3",
"informationType": "Financial",
"informationTypeId": "1D3652D6-422C-4115-82F1-65DAEBC665C8"
}
}
}
},
{
"properties": {
"op": "set",
"schema": "dbo",
"table": "table2",
"column": "column2",
"sensitivityLabel": {
"properties": {
"informationType": "PhoneNumber",
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
"labelName": "PII"
}
}
}
},
{
"properties": {
"op": "remove",
"schema": "dbo",
"table": "Table1",
"column": "Column3"
}
}
]
}
샘플 응답
정의
Name | Description |
---|---|
Sensitivity |
민감도 레이블입니다. |
Sensitivity |
|
Sensitivity |
민감도 레이블 업데이트 작업입니다. |
Sensitivity |
|
Sensitivity |
민감도 레이블 업데이트 작업 목록입니다. |
SensitivityLabel
민감도 레이블입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
managedBy |
string |
민감도 레이블을 관리하는 리소스입니다. |
name |
string |
리소스 이름입니다. |
properties.columnName |
string |
열 이름입니다. |
properties.informationType |
string |
정보 유형입니다. |
properties.informationTypeId |
string |
정보 유형 ID입니다. |
properties.isDisabled |
boolean |
민감도 권장 사항이 사용하지 않도록 설정되어 있습니다. 권장 민감도 레이블에만 적용됩니다. 이 열의 민감도 권장 사항을 사용하지 않도록 설정(해제)할지 여부를 지정합니다. |
properties.labelId |
string |
레이블 ID입니다. |
properties.labelName |
string |
레이블 이름입니다. |
properties.rank | ||
properties.schemaName |
string |
스키마 이름입니다. |
properties.tableName |
string |
테이블 이름. |
type |
string |
리소스 종류. |
SensitivityLabelRank
Name | 형식 | Description |
---|---|---|
Critical |
string |
|
High |
string |
|
Low |
string |
|
Medium |
string |
|
None |
string |
SensitivityLabelUpdate
민감도 레이블 업데이트 작업입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
name |
string |
리소스 이름입니다. |
properties.column |
string |
업데이트할 열 이름입니다. |
properties.op | ||
properties.schema |
string |
업데이트할 열의 스키마 이름입니다. |
properties.sensitivityLabel |
열에 적용할 민감도 레이블 정보입니다. |
|
properties.table |
string |
업데이트할 열의 테이블 이름입니다. |
type |
string |
리소스 종류. |
SensitivityLabelUpdateKind
Name | 형식 | Description |
---|---|---|
remove |
string |
|
set |
string |
SensitivityLabelUpdateList
민감도 레이블 업데이트 작업 목록입니다.
Name | 형식 | Description |
---|---|---|
operations |
민감도 레이블 업데이트 작업입니다. |