Databases - Regenerate Key

RedisEnterprise veritabanının erişim anahtarlarını yeniden oluşturur.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey?api-version=2024-02-01

URI Parametreleri

Name İçinde Gerekli Tür Description
clusterName
path True

string

RedisEnterprise kümesinin adı.

databaseName
path True

string

Veritabanının adı.

resourceGroupName
path True

string

Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir.

subscriptionId
path True

string

Hedef aboneliğin kimliği.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

İstek Gövdesi

Name Gerekli Tür Description
keyType True

AccessKeyType

Yeniden oluşturulacak erişim anahtarı.

Yanıtlar

Name Tür Description
200 OK

AccessKeys

Veritabanı için yeni erişim anahtarlarını döndürür

202 Accepted

Küme güncelleştirme işlemi başlatıldı. Güncelleştirilmiş durumu almak için Azure-AsyncOperation veya Konum üst bilgilerindeki URL'yi ALıN.

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

RedisEnterpriseDatabasesRegenerateKey

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default/regenerateKey?api-version=2024-02-01

{
  "keyType": "Primary"
}

Sample Response

{
  "primaryKey": "<primaryKey>",
  "secondaryKey": "<secondaryKey>"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationStatus...
Location: https://management.azure.com/subscriptions/subid/providers/Microsoft.Cache/...pathToOperationResult...

Tanımlar

Name Description
AccessKeys

Erişim tuşları

AccessKeyType

Yeniden oluşturulacak erişim anahtarı.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı

RegenerateKeyParameters

Erişim anahtarları isteğini yeniden oluşturma

AccessKeys

Erişim tuşları

Name Tür Description
primaryKey

string

İstemcilerin kimlik doğrulaması için kullanabileceği geçerli birincil anahtar

secondaryKey

string

İstemcilerin kimlik doğrulaması için kullanabileceği geçerli ikincil anahtar

AccessKeyType

Yeniden oluşturulacak erişim anahtarı.

Name Tür Description
Primary

string

Secondary

string

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorDetail

Hata ayrıntısı.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorDetail[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

ErrorResponse

Hata yanıtı

Name Tür Description
error

ErrorDetail

Hata nesnesi.

RegenerateKeyParameters

Erişim anahtarları isteğini yeniden oluşturma

Name Tür Description
keyType

AccessKeyType

Yeniden oluşturulacak erişim anahtarı.