Encryption Protectors - Create Or Update
Uppdaterar ett befintligt krypteringsskydd.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/current?api-version=2023-08-01
URI-parametrar
| Name | I | Obligatorisk | Typ | Description |
|---|---|---|---|---|
|
encryption
|
path | True |
Namnet på krypteringsskyddet som ska uppdateras. |
|
|
resource
|
path | True |
string |
Namnet på resursgruppen som innehåller resursen. Du kan hämta det här värdet från Azure Resource Manager-API:et eller portalen. |
|
server
|
path | True |
string |
Namnet på servern. |
|
subscription
|
path | True |
string |
Det prenumerations-ID som identifierar en Azure-prenumeration. |
|
api-version
|
query | True |
string |
DEN API-version som ska användas för begäran. |
Begärandetext
| Name | Obligatorisk | Typ | Description |
|---|---|---|---|
| properties.serverKeyType | True |
Krypteringsskyddstypen som "ServiceManaged", "AzureKeyVault". |
|
| properties.autoRotationEnabled |
boolean |
Opt-in-flagga för automatisk rotation av nycklar. Antingen sant eller falskt. |
|
| properties.serverKeyName |
string |
Namnet på servernyckeln. |
Svar
| Name | Typ | Description |
|---|---|---|
| 200 OK |
Krypteringsskyddet har uppdaterats. |
|
| 202 Accepted |
Accepterad Sidhuvuden Location: string |
|
| Other Status Codes |
Felsvar: ***
|
Exempel
| Update the encryption protector to key vault |
| Update the encryption protector to service managed |
Update the encryption protector to key vault
Exempelbegäran
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
}
}
Exempelsvar
{
"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
Exempelbegäran
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"
}
}
Exempelsvar
{
"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"
}
}
Definitioner
| Name | Description |
|---|---|
|
Encryption |
Serverkrypteringsskyddet. |
|
Encryption |
Namnet på krypteringsskyddet som ska uppdateras. |
|
Error |
Ytterligare information om resurshanteringsfelet. |
|
Error |
Felinformationen. |
|
Error |
Felsvar |
|
Server |
Krypteringsskyddstypen som "ServiceManaged", "AzureKeyVault". |
EncryptionProtector
Serverkrypteringsskyddet.
| Name | Typ | Description |
|---|---|---|
| id |
string |
Resurs-ID. |
| kind |
string |
Typ av krypteringsskydd. Det här är metadata som används för Azure-portalen. |
| location |
string |
Resursplats. |
| name |
string |
Resursnamn. |
| properties.autoRotationEnabled |
boolean |
Opt-in-flagga för automatisk rotation av nycklar. Antingen sant eller falskt. |
| properties.serverKeyName |
string |
Namnet på servernyckeln. |
| properties.serverKeyType |
Krypteringsskyddstypen som "ServiceManaged", "AzureKeyVault". |
|
| properties.subregion |
string |
Underregion för krypteringsskyddet. |
| properties.thumbprint |
string |
Tumavtryck för servernyckeln. |
| properties.uri |
string |
URI:n för servernyckeln. |
| type |
string |
Resurstyp. |
EncryptionProtectorName
Namnet på krypteringsskyddet som ska uppdateras.
| Värde | Description |
|---|---|
| current |
ErrorAdditionalInfo
Ytterligare information om resurshanteringsfelet.
| Name | Typ | Description |
|---|---|---|
| info |
object |
Ytterligare information. |
| type |
string |
Ytterligare informationstyp. |
ErrorDetail
Felinformationen.
| Name | Typ | Description |
|---|---|---|
| additionalInfo |
Ytterligare information om felet. |
|
| code |
string |
Felkoden. |
| details |
Felinformationen. |
|
| message |
string |
Felmeddelandet. |
| target |
string |
Felmålet. |
ErrorResponse
Felsvar
| Name | Typ | Description |
|---|---|---|
| error |
Felobjektet. |
ServerKeyType
Krypteringsskyddstypen som "ServiceManaged", "AzureKeyVault".
| Värde | Description |
|---|---|
| ServiceManaged | |
| AzureKeyVault |