共用方式為


Sensitivity Labels - Get

取得指定數據行的敏感度標籤

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}?api-version=2023-08-01

URI 參數

名稱 位於 必要 類型 Description
columnName
path True

string

數據行的名稱。

databaseName
path True

string

資料庫的名稱。

resourceGroupName
path True

string

包含資源的資源群組名稱。 您可以從 Azure Resource Manager API 或入口網站取得此值。

schemaName
path True

string

架構的名稱。

sensitivityLabelSource
path True

SensitivityLabelSource

敏感度標籤的來源。

serverName
path True

string

伺服器的名稱。

subscriptionId
path True

string

識別 Azure 訂用帳戶的訂用帳戶標識碼。

tableName
path True

string

數據表的名稱。

api-version
query True

string

要用於要求的 API 版本。

回應

名稱 類型 Description
200 OK

SensitivityLabel

已成功擷取敏感度標籤。

Other Status Codes

ErrorResponse

錯誤回應: ***

  • 400 DatawarehouseDatabaseIsDeactivated - 無法執行數據分類作業,因為資料庫已暫停。 請繼續。

  • 400 SensitivityLabelSourceNameNotSupported - 指定的敏感度標籤來源無效

  • 404 SubscriptionDoesNotHaveServer - 找不到要求的伺服器

  • 404 SensitivityLabelsSchemaNotFound - 找不到架構 {0}

  • 404 SensitivityLabelsTableNotFound - 在架構 {0} 找不到數據表 {1}

  • 404 SensitivityLabelsColumnNotFound - 在數據表 {0}中找不到數據行 {2}。{1}

  • 404 DatabaseDoesNotExist - 使用者已指定此伺服器實例上不存在的資料庫名稱。

  • 404 SensitivityLabelsLabelNotFound - 找不到指定的敏感度標籤

  • 501 SensitivityLabelRecommendedSourceNameNotSupported - 尚不支援「建議」敏感度卷標來源

  • 501 SensitivityLabelRecommendedSourceNameNotSupported - 尚不支援「建議」敏感度卷標來源

範例

Gets the sensitivity label of a given column

範例要求

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current?api-version=2023-08-01

範例回覆

{
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current",
  "name": "current",
  "type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels",
  "properties": {
    "schemaName": "dbo",
    "tableName": "myTable",
    "columnName": "myColumn",
    "informationType": "PhoneNumber",
    "informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
    "labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
    "labelName": "PII",
    "rank": "High"
  }
}

定義

名稱 Description
ClientClassificationSource
ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

SensitivityLabel

敏感度標籤。

SensitivityLabelRank
SensitivityLabelSource

敏感度標籤的來源。

ClientClassificationSource

Description
MIP
Native
None
Recommended

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳細數據。

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。

SensitivityLabel

敏感度標籤。

名稱 類型 Description
id

string

資源標識碼。

managedBy

string

管理敏感度標籤的資源。

name

string

資源名稱。

properties.clientClassificationSource

ClientClassificationSource

properties.columnName

string

數據行名稱。

properties.informationType

string

信息類型。

properties.informationTypeId

string

資訊類型標識碼。

properties.isDisabled

boolean

敏感度建議已停用。 僅適用於建議的敏感度標籤。 指定是否停用此數據行的敏感度建議(已關閉)。

properties.labelId

string

標籤標識碼。

properties.labelName

string

標籤名稱。

properties.rank

SensitivityLabelRank

properties.schemaName

string

架構名稱。

properties.tableName

string

數據表名稱。

type

string

資源類型。

SensitivityLabelRank

Description
Critical
High
Low
Medium
None

SensitivityLabelSource

敏感度標籤的來源。

Description
current
recommended