Sensitivity Labels - Create Or Update
Het vertrouwelijkheidslabel van een bepaalde kolom maken of bijwerken
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/current?api-version=2023-08-01
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
column
|
path | True |
string |
De naam van de kolom. |
|
database
|
path | True |
string |
De naam van de database. |
|
resource
|
path | True |
string |
De naam van de resourcegroep die de resource bevat. U kunt deze waarde verkrijgen via de Azure Resource Manager-API of de portal. |
|
schema
|
path | True |
string |
De naam van het schema. |
|
sensitivity
|
path | True |
De bron van het vertrouwelijkheidslabel. |
|
|
server
|
path | True |
string |
De naam van de server. |
|
subscription
|
path | True |
string |
De abonnements-id waarmee een Azure-abonnement wordt geïdentificeerd. |
|
table
|
path | True |
string |
De naam van de tabel. |
|
api-version
|
query | True |
string |
De API-versie die moet worden gebruikt voor de aanvraag. |
Aanvraagbody
| Name | Type | Description |
|---|---|---|
| properties.clientClassificationSource | ||
| properties.informationType |
string |
Het informatietype. |
| properties.informationTypeId |
string |
De id van het informatietype. |
| properties.labelId |
string |
De label-id. |
| properties.labelName |
string |
De labelnaam. |
| properties.rank |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
Het vertrouwelijkheidslabel is bijgewerkt. |
|
| 201 Created |
Het vertrouwelijkheidslabel is gemaakt. |
|
| Other Status Codes |
Foutreacties: ***
|
Voorbeelden
Updates the sensitivity label of a given column with all parameters
Voorbeeldaanvraag
PUT 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
{
"properties": {
"informationType": "PhoneNumber",
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
"labelName": "PII",
"rank": "Low",
"clientClassificationSource": "Native"
}
}
Voorbeeldrespons
{
"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": "Medium"
}
}
{
"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": {
"informationType": "PhoneNumber",
"informationTypeId": "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
"labelId": "bf91e08c-f4f0-478a-b016-25164b2a65ff",
"labelName": "PII",
"rank": "High"
}
}
Definities
| Name | Description |
|---|---|
|
Client |
|
|
Current |
De bron van het vertrouwelijkheidslabel. |
|
Error |
Aanvullende informatie over de resourcebeheerfout. |
|
Error |
De foutdetails. |
|
Error |
Foutreactie |
|
Sensitivity |
Een vertrouwelijkheidslabel. |
|
Sensitivity |
ClientClassificationSource
| Waarde | Description |
|---|---|
| None | |
| Native | |
| Recommended | |
| MIP |
CurrentSensitivityLabelSource
De bron van het vertrouwelijkheidslabel.
| Waarde | Description |
|---|---|
| current |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
| Name | Type | Description |
|---|---|---|
| info |
object |
De aanvullende informatie. |
| type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
De fout bevat aanvullende informatie. |
|
| code |
string |
De foutcode. |
| details |
De foutdetails. |
|
| message |
string |
Het foutbericht. |
| target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
| Name | Type | Description |
|---|---|---|
| error |
Het foutobject. |
SensitivityLabel
Een vertrouwelijkheidslabel.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource-id. |
| managedBy |
string |
Resource waarmee het vertrouwelijkheidslabel wordt beheerd. |
| name |
string |
Resourcenaam. |
| properties.clientClassificationSource | ||
| properties.columnName |
string |
De kolomnaam. |
| properties.informationType |
string |
Het informatietype. |
| properties.informationTypeId |
string |
De id van het informatietype. |
| properties.isDisabled |
boolean |
Is de aanbeveling voor gevoeligheid uitgeschakeld. Alleen van toepassing op aanbevolen vertrouwelijkheidslabels. Hiermee geeft u op of de vertrouwelijkheidsaanveling voor deze kolom is uitgeschakeld (gesloten) of niet. |
| properties.labelId |
string |
De label-id. |
| properties.labelName |
string |
De labelnaam. |
| properties.rank | ||
| properties.schemaName |
string |
De schemanaam. |
| properties.tableName |
string |
De tabelnaam. |
| type |
string |
Resourcetype. |
SensitivityLabelRank
| Waarde | Description |
|---|---|
| None | |
| Low | |
| Medium | |
| High | |
| Critical |