Sensitivity Labels - List Current By Database
Egy adott adatbázis bizalmassági címkéinek lekérdezése
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels?api-version=2023-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels?$skipToken={$skipToken}&$count={$count}&$filter={$filter}&api-version=2023-08-01
URI-paraméterek
| Name | In | Kötelező | Típus | Description |
|---|---|---|---|---|
|
database
|
path | True |
string |
Az adatbázis neve. |
|
resource
|
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. |
|
server
|
path | True |
string |
A kiszolgáló neve. |
|
subscription
|
path | True |
string |
Az Azure-előfizetést azonosító előfizetés-azonosító. |
|
api-version
|
query | True |
string |
A kéréshez használni kívánt API-verzió. |
|
$count
|
query |
boolean |
||
|
$filter
|
query |
string |
OData szűrőkifejezés, amely a gyűjtemény elemeit szűri. |
|
|
$skip
|
query |
string |
Válaszok
| Name | Típus | Description |
|---|---|---|
| 200 OK |
Sikeresen lekérte a bizalmassági címkéket. |
|
| Other Status Codes |
Hibaválaszok: ***
|
Példák
Gets the current sensitivity labels of a given database
Mintakérelem
Mintaválasz
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn3/sensitivityLabels/current",
"name": "current",
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels",
"properties": {
"schemaName": "dbo",
"tableName": "myTable",
"columnName": "myColumn3",
"informationType": "Financial",
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
"labelId": "05e6eaa1-075a-4fb4-a732-a92215a2444a",
"labelName": "Sensitive",
"rank": "Low"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn4/sensitivityLabels/current",
"name": "current",
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels",
"properties": {
"schemaName": "dbo",
"tableName": "myTable",
"columnName": "myColumn4",
"informationType": "Email",
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
"labelName": "PII",
"rank": "None"
}
}
]
}
Definíciók
| Name | Description |
|---|---|
|
Client |
|
|
Error |
Az erőforrás-kezelési hiba további információi. |
|
Error |
A hiba részletei. |
|
Error |
Hibaválasz |
|
Sensitivity |
Bizalmassági címke. |
|
Sensitivity |
A bizalmassági címkék listája. |
|
Sensitivity |
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 |
A hiba további információi. |
|
| code |
string |
A hibakód. |
| details |
A hiba részletei. |
|
| message |
string |
A hibaüzenet. |
| target |
string |
A hibacél. |
ErrorResponse
Hibaválasz
| Name | Típus | Description |
|---|---|---|
| error |
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 | ||
| 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 | ||
| properties.schemaName |
string |
A séma neve. |
| properties.tableName |
string |
A tábla neve. |
| type |
string |
Erőforrás típusa. |
SensitivityLabelListResult
A bizalmassági címkék listája.
| Name | Típus | Description |
|---|---|---|
| nextLink |
string |
Hivatkozás az eredmények következő oldalának lekéréséhez. |
| value |
Eredménytömb. |
SensitivityLabelRank
| Érték | Description |
|---|---|
| None | |
| Low | |
| Medium | |
| High | |
| Critical |