Server Keys - Create Or Update
Sunucu anahtarı oluşturur veya güncelleştirir.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}?api-version=2020-11-01-preview
URI Parametreleri
Name | In | Required | Type | Description |
---|---|---|---|---|
key
|
path | True |
|
Üzerinde işletilenecek sunucu anahtarının adı (güncelleştirilmiş veya oluşturuldu). Anahtar adının ' vault_key_version ' biçiminde olması gerekir. Örneğin, keyId ise https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion , sunucu anahtarı adı şöyle biçimlendirilmelidir: YourVaultName_YourKeyName_YourKeyVersion |
resource
|
path | True |
|
Kaynağı içeren kaynak grubunun adı. Bu değeri Azure Resource Manager API 'sinden veya portalından elde edebilirsiniz. |
server
|
path | True |
|
Sunucunun adı. |
subscription
|
path | True |
|
Bir Azure aboneliğini tanımlayan abonelik KIMLIĞI. |
api-version
|
query | True |
|
İstek için kullanılacak API sürümü. |
İstek Gövdesi
Name | Required | Type | Description |
---|---|---|---|
properties.serverKeyType | True |
' ServiceManaged ', ' AzureKeyVault ' gibi sunucu anahtarı türü. |
|
properties.uri |
|
Sunucu anahtarının URI 'SI. ServerKeyType AzureKeyVault ise URI gereklidir. |
Yanıtlar
Name | Type | Description |
---|---|---|
200 OK |
Sunucu anahtarı başarıyla güncelleştirildi. |
|
201 Created |
Sunucu anahtarı başarıyla oluşturuldu. |
|
202 Accepted |
Kabul edildi |
|
Other Status Codes |
Hata yanıtları: * * _ _ 400 ınvalidkeyname-sunucu anahtar adı için geçersiz bir değer verildi.
|
Örnekler
Creates or updates a server key
Sample Request
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/keys/someVault_someKey_01234567890123456789012345678901?api-version=2020-11-01-preview
{
"properties": {
"serverKeyType": "AzureKeyVault",
"uri": "https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901"
}
}
Sample Response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/keys/someVault_someKey_01234567890123456789012345678901",
"name": "sqlcrudtest-4645",
"type": "Microsoft.Sql/servers/keys",
"location": "Japan East",
"kind": "azurekeyvault",
"properties": {
"thumbprint": "00112233445566778899AABBCCDDEEFFAABBCCDD",
"creationDate": "2020-11-15T00:00:00Z",
"autoRotationEnabled": false
}
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/keys/someVault_someKey_01234567890123456789012345678901",
"name": "sqlcrudtest-4645",
"type": "Microsoft.Sql/servers/keys",
"location": "Japan East",
"kind": "azurekeyvault",
"properties": {
"thumbprint": "00112233445566778899AABBCCDDEEFFAABBCCDD",
"creationDate": "2020-11-15T00:00:00Z",
"autoRotationEnabled": false
}
}
Tanımlar
Server |
Bir sunucu anahtarı. |
Server |
' ServiceManaged ', ' AzureKeyVault ' gibi sunucu anahtarı türü. |
ServerKey
Bir sunucu anahtarı.
Name | Type | Description |
---|---|---|
id |
|
Kaynak KIMLIĞI. |
kind |
|
Şifreleme koruyucusu türü. Bu, Azure portal deneyimi için kullanılan meta verileridir. |
location |
|
Kaynak konumu. |
name |
|
Kaynak adı. |
properties.autoRotationEnabled |
|
Anahtar otomatik döndürme katılım bayrağı. True ya da false. |
properties.creationDate |
|
Sunucu anahtarı oluşturma tarihi. |
properties.serverKeyType |
' ServiceManaged ', ' AzureKeyVault ' gibi sunucu anahtarı türü. |
|
properties.subregion |
|
Sunucu anahtarının alt bölgesi. |
properties.thumbprint |
|
Sunucu anahtarının parmak izi. |
properties.uri |
|
Sunucu anahtarının URI 'SI. ServerKeyType AzureKeyVault ise URI gereklidir. |
type |
|
Kaynak türü. |
ServerKeyType
' ServiceManaged ', ' AzureKeyVault ' gibi sunucu anahtarı türü.
Name | Type | Description |
---|---|---|
AzureKeyVault |
|
|
ServiceManaged |
|