Aracılığıyla paylaş


Communication Services - List Keys

Liste Anahtarları
CommunicationService kaynağının erişim anahtarlarını alın.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/listKeys?api-version=2023-03-31

URI Parametreleri

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

string

CommunicationService kaynağının adı.

Normal ifade deseni: ^[-\w]+$

resourceGroupName
path True

string

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

subscriptionId
path True

string

uuid

Hedef aboneliğin kimliği. Değer bir UUID olmalıdır.

api-version
query True

string

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

Yanıtlar

Name Tür Description
200 OK

CommunicationServiceKeys

Başarılı. Yanıt, CommunicationService erişim anahtarlarını açıklar.

Other Status Codes

ErrorResponse

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

Örnekler

List keys

Örnek isteği

POST https://management.azure.com/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/communicationServices/MyCommunicationResource/listKeys?api-version=2023-03-31

Örnek yanıt

{
  "primaryKey": "<primaryKey>",
  "secondaryKey": "<secondaryKey>"
}

Tanımlar

Name Description
CommunicationServiceKeys

CommunicationService'in erişim anahtarlarını temsil eden bir sınıf.

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı

CommunicationServiceKeys

CommunicationService'in erişim anahtarlarını temsil eden bir sınıf.

Name Tür Description
primaryConnectionString

string

CommunicationService bağlantı dizesi primaryKey aracılığıyla derlendi

primaryKey

string

Birincil erişim anahtarı.

secondaryConnectionString

string

secondaryKey aracılığıyla yapılan CommunicationService bağlantı dizesi

secondaryKey

string

İkincil erişim anahtarı.

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.