Managed Database Sensitivity Labels - Update
操作バッチを使用して、特定のデータベースの秘密度ラベルを更新します。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels?api-version=2025-01-01
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
database
|
path | True |
string |
データベースの名前。 |
|
managed
|
path | True |
string |
マネージド インスタンスの名前。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前の大文字と小文字は区別されません。 |
|
subscription
|
path | True |
string (uuid) |
ターゲット サブスクリプションの ID。 値は UUID である必要があります。 |
|
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
| 名前 | 型 | 説明 |
|---|---|---|
| operations |
秘密度ラベルの更新操作。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
要求は成功しました。 |
|
| Other Status Codes |
予期しないエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 Flow.
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
| 名前 | 説明 |
|---|---|
| user_impersonation | ユーザー アカウントを偽装する |
例
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=2025-01-01
{
"operations": [
{
"properties": {
"schema": "dbo",
"column": "column1",
"op": "set",
"sensitivityLabel": {
"properties": {
"informationType": "Financial",
"informationTypeId": "1D3652D6-422C-4115-82F1-65DAEBC665C8",
"labelId": "3A477B16-9423-432B-AA97-6069B481CEC3",
"labelName": "Highly Confidential"
}
},
"table": "table1"
}
},
{
"properties": {
"schema": "dbo",
"column": "column2",
"op": "set",
"sensitivityLabel": {
"properties": {
"informationType": "PhoneNumber",
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
"labelName": "PII"
}
},
"table": "table2"
}
},
{
"properties": {
"schema": "dbo",
"column": "Column3",
"op": "remove",
"table": "Table1"
}
}
]
}
応答のサンプル
定義
| 名前 | 説明 |
|---|---|
|
Client |
|
|
created |
リソースを作成した ID の種類。 |
|
Error |
リソース管理エラーの追加情報。 |
|
Error |
エラーの詳細。 |
|
Error |
エラー応答 |
|
Sensitivity |
秘密度ラベル。 |
|
Sensitivity |
|
|
Sensitivity |
秘密度ラベルの更新操作。 |
|
Sensitivity |
|
|
Sensitivity |
秘密度ラベルの更新操作の一覧。 |
|
system |
リソースの作成と最後の変更に関連するメタデータ。 |
ClientClassificationSource
| 値 | 説明 |
|---|---|
| None |
なし |
| Native |
Native |
| Recommended |
推奨 |
| MIP |
ミップ |
createdByType
リソースを作成した ID の種類。
| 値 | 説明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
| 名前 | 型 | 説明 |
|---|---|---|
| info |
object |
追加情報。 |
| type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
| 名前 | 型 | 説明 |
|---|---|---|
| additionalInfo |
エラーの追加情報。 |
|
| code |
string |
エラー コード。 |
| details |
エラーの詳細。 |
|
| message |
string |
エラー メッセージ。 |
| target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー オブジェクト。 |
SensitivityLabel
秘密度ラベル。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string (arm-id) |
リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| managedBy |
string |
秘密度ラベルを管理するリソース。 |
| name |
string |
リソースの名前 |
| properties.clientClassificationSource | ||
| 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 |
テーブル名。 |
| systemData |
create By と modifiedBy の情報を含む Azure Resource Manager メタデータ。 |
|
| type |
string |
リソースの型。 例えば「Microsoft。Compute/virtualMachines」または「Microsoft」などです。ストレージ/ストレージアカウント」 |
SensitivityLabelRank
| 値 | 説明 |
|---|---|
| None |
なし |
| Low |
低 |
| Medium |
中程度 |
| High |
高 |
| Critical |
危うい |
SensitivityLabelUpdate
秘密度ラベルの更新操作。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string (arm-id) |
リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
リソースの名前 |
| properties.column |
string |
更新する列名。 |
| properties.op | ||
| properties.schema |
string |
更新する列のスキーマ名。 |
| properties.sensitivityLabel |
列に適用する秘密度ラベル情報。 |
|
| properties.table |
string |
更新する列のテーブル名。 |
| systemData |
create By と modifiedBy の情報を含む Azure Resource Manager メタデータ。 |
|
| type |
string |
リソースの型。 例えば「Microsoft。Compute/virtualMachines」または「Microsoft」などです。ストレージ/ストレージアカウント」 |
SensitivityLabelUpdateKind
| 値 | 説明 |
|---|---|
| set |
設定 |
| remove |
削除 |
SensitivityLabelUpdateList
秘密度ラベルの更新操作の一覧。
| 名前 | 型 | 説明 |
|---|---|---|
| operations |
秘密度ラベルの更新操作。 |
systemData
リソースの作成と最後の変更に関連するメタデータ。
| 名前 | 型 | 説明 |
|---|---|---|
| createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
| createdBy |
string |
リソースを作成した ID。 |
| createdByType |
リソースを作成した ID の種類。 |
|
| lastModifiedAt |
string (date-time) |
リソースの最終変更のタイムスタンプ (UTC) |
| lastModifiedBy |
string |
リソースを最後に変更した ID。 |
| lastModifiedByType |
リソースを最後に変更した ID の種類。 |