Megosztás:


Sensitivity Labels - Get

Egy adott oszlop bizalmassági címkéjének lekérdezése

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-paraméterek

Name In Kötelező Típus Description
columnName
path True

string

Az oszlop neve.

databaseName
path True

string

Az adatbázis neve.

resourceGroupName
path True

string

Az erőforrást tartalmazó erőforráscsoport neve. Ezt az értéket az Azure Resource Manager API-ból vagy a portálról szerezheti be.

schemaName
path True

string

A séma neve.

sensitivityLabelSource
path True

SensitivityLabelSource

A bizalmassági címke forrása.

serverName
path True

string

A kiszolgáló neve.

subscriptionId
path True

string

Az Azure-előfizetést azonosító előfizetés-azonosító.

tableName
path True

string

A tábla neve.

api-version
query True

string

A kéréshez használni kívánt API-verzió.

Válaszok

Name Típus Description
200 OK

SensitivityLabel

Sikeresen lekérte a bizalmassági címkét.

Other Status Codes

ErrorResponse

Hibaválaszok: ***

  • 400 DatawarehouseDatabaseIsDeactivated – Nem sikerült végrehajtani az adatbesorolási műveletet, mert az adatbázis szüneteltetve van. Kérjük, folytassa a elemet.

  • 400 SensitivityLabelSourceNameNotSupported – A megadott bizalmassági címkeforrás érvénytelen

  • 404 SubscriptionDoesNotHaveServer – A kért kiszolgáló nem található

  • 404 SensitivityLabelsSchemaNotFound – A séma {0} nem található

  • 404 SensitivityLabelsTableNotFound – A {0} tábla nem található a séma {1}

  • 404 SensitivityLabelsColumnNotFound – A {0} oszlop nem található a {2}.{1}

  • 404 DatabaseDoesNotExist – A felhasználó olyan adatbázisnevet adott meg, amely nem létezik ezen a kiszolgálópéldányon.

  • 404 SensitivityLabelsLabelNotFound – A megadott bizalmassági címke nem található

  • 501 SensitivityLabelRecommendedSourceNameNotSupported – Az "Ajánlott" bizalmassági címkeforrás még nem támogatott

  • 501 SensitivityLabelRecommendedSourceNameNotSupported – Az "Ajánlott" bizalmassági címkeforrás még nem támogatott

Példák

Gets the sensitivity label of a given column

Mintakérelem

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

Mintaválasz

{
  "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"
  }
}

Definíciók

Name Description
ClientClassificationSource
ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

ErrorDetail

A hiba részletei.

ErrorResponse

Hibaválasz

SensitivityLabel

Bizalmassági címke.

SensitivityLabelRank
SensitivityLabelSource

A bizalmassági címke forrása.

ClientClassificationSource

Érték Description
None
Native
Recommended
MIP

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

Name Típus Description
info

object

A további információk.

type

string

A további információtípus.

ErrorDetail

A hiba részletei.

Name Típus Description
additionalInfo

ErrorAdditionalInfo[]

A hiba további információi.

code

string

A hibakód.

details

ErrorDetail[]

A hiba részletei.

message

string

A hibaüzenet.

target

string

A hibacél.

ErrorResponse

Hibaválasz

Name Típus Description
error

ErrorDetail

A hibaobjektum.

SensitivityLabel

Bizalmassági címke.

Name Típus Description
id

string

Erőforrás-azonosító.

managedBy

string

A bizalmassági címkét kezelő erőforrás.

name

string

Erőforrás neve.

properties.clientClassificationSource

ClientClassificationSource

properties.columnName

string

Az oszlop neve.

properties.informationType

string

Az információ típusa.

properties.informationTypeId

string

Az információtípus azonosítója.

properties.isDisabled

boolean

A bizalmassági javaslat le van tiltva. Csak az ajánlott bizalmassági címke esetén alkalmazható. Megadja, hogy az oszlop bizalmassági ajánlása le van-e tiltva (elvetve) vagy sem.

properties.labelId

string

A címke azonosítója.

properties.labelName

string

A címke neve.

properties.rank

SensitivityLabelRank

properties.schemaName

string

A séma neve.

properties.tableName

string

A tábla neve.

type

string

Erőforrás típusa.

SensitivityLabelRank

Érték Description
None
Low
Medium
High
Critical

SensitivityLabelSource

A bizalmassági címke forrása.

Érték Description
current
recommended