Encryption Protectors - Create Or Update
Frissíti a meglévő titkosítási védőt.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/current?api-version=2023-08-01
URI-paraméterek
| Name | In | Kötelező | Típus | Description |
|---|---|---|---|---|
|
encryption
|
path | True |
A frissíteni kívánt titkosítási védő 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ó. |
Kérelem törzse
| Name | Kötelező | Típus | Description |
|---|---|---|---|
| properties.serverKeyType | True |
A titkosítási védő típusa, például "ServiceManaged", "AzureKeyVault". |
|
| properties.autoRotationEnabled |
boolean |
A kulcs automatikus elforgatásának bejelentkezési jelzője. Igaz vagy hamis. |
|
| properties.serverKeyName |
string |
A kiszolgálókulcs neve. |
Válaszok
| Name | Típus | Description |
|---|---|---|
| 200 OK |
Sikeresen frissítette a titkosítási védőt. |
|
| 202 Accepted |
Elfogadott Fejlécek Location: string |
|
| Other Status Codes |
Hibaválaszok: ***
|
Példák
| Update the encryption protector to key vault |
| Update the encryption protector to service managed |
Update the encryption protector to key vault
Mintakérelem
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current?api-version=2023-08-01
{
"properties": {
"serverKeyType": "AzureKeyVault",
"serverKeyName": "someVault_someKey_01234567890123456789012345678901",
"autoRotationEnabled": false
}
}
Mintaválasz
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current",
"name": "current",
"type": "Microsoft.Sql/servers/encryptionProtector",
"location": "West US",
"kind": "azurekeyvault",
"properties": {
"serverKeyName": "someVault_someKey_01234567890123456789012345678901",
"serverKeyType": "AzureKeyVault",
"autoRotationEnabled": false
}
}
Update the encryption protector to service managed
Mintakérelem
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current?api-version=2023-08-01
{
"properties": {
"serverKeyType": "ServiceManaged",
"serverKeyName": "ServiceManaged"
}
}
Mintaválasz
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/encryptionProtector/current",
"name": "current",
"type": "Microsoft.Sql/servers/encryptionProtector",
"location": "West US",
"kind": "servicemanaged",
"properties": {
"serverKeyName": "ServiceManaged",
"serverKeyType": "ServiceManaged"
}
}
Definíciók
| Name | Description |
|---|---|
|
Encryption |
A kiszolgálótitkosítási védő. |
|
Encryption |
A frissíteni kívánt titkosítási védő neve. |
|
Error |
Az erőforrás-kezelési hiba további információi. |
|
Error |
A hiba részletei. |
|
Error |
Hibaválasz |
|
Server |
A titkosítási védő típusa, például "ServiceManaged", "AzureKeyVault". |
EncryptionProtector
A kiszolgálótitkosítási védő.
| Name | Típus | Description |
|---|---|---|
| id |
string |
Erőforrás-azonosító. |
| kind |
string |
Egyfajta titkosítási védő. Ez az Azure Portal felhasználói élményéhez használt metaadatok. |
| location |
string |
Erőforrás helye. |
| name |
string |
Erőforrás neve. |
| properties.autoRotationEnabled |
boolean |
A kulcs automatikus elforgatásának bejelentkezési jelzője. Igaz vagy hamis. |
| properties.serverKeyName |
string |
A kiszolgálókulcs neve. |
| properties.serverKeyType |
A titkosítási védő típusa, például "ServiceManaged", "AzureKeyVault". |
|
| properties.subregion |
string |
A titkosítási védő alrégiója. |
| properties.thumbprint |
string |
A kiszolgálókulcs ujjlenyomata. |
| properties.uri |
string |
A kiszolgálókulcs URI-ja. |
| type |
string |
Erőforrás típusa. |
EncryptionProtectorName
A frissíteni kívánt titkosítási védő neve.
| Érték | Description |
|---|---|
| current |
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. |
ServerKeyType
A titkosítási védő típusa, például "ServiceManaged", "AzureKeyVault".
| Érték | Description |
|---|---|
| ServiceManaged | |
| AzureKeyVault |