Database Accounts - List Keys

Belirtilen Azure Cosmos DB veritabanı hesabının erişim anahtarlarını Listeler.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys?api-version=2023-11-15

URI Parametreleri

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

string

Cosmos DB veritabanı hesap adı.

Regex pattern: ^[a-z0-9]+(-[a-z0-9]+)*

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ü.

Yanıtlar

Name Tür Description
200 OK

DatabaseAccountListKeysResult

İşlem başarıyla tamamlandı.

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

CosmosDBDatabaseAccountListKeys

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/listKeys?api-version=2023-11-15

Sample Response

{
  "primaryMasterKey": "primaryMasterKey",
  "secondaryMasterKey": "secondaryMasterKey",
  "primaryReadonlyMasterKey": "primaryReadonlyMasterKey",
  "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey"
}

Tanımlar

DatabaseAccountListKeysResult

Verilen veritabanı hesabının erişim anahtarları.

Name Tür Description
primaryMasterKey

string

Birincil okuma-yazma anahtarının temel 64 kodlanmış değeri.

primaryReadonlyMasterKey

string

Birincil salt okunur anahtarın temel 64 kodlanmış değeri.

secondaryMasterKey

string

İkincil okuma-yazma anahtarının temel 64 kodlanmış değeri.

secondaryReadonlyMasterKey

string

İkincil salt okunur anahtarın 64 tabanlı kodlanmış değeri.