Communication Services - List Keys

키를 나열합니다.
CommunicationService 리소스의 액세스 키를 가져옵니다.

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

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
communicationServiceName
path True

string

CommunicationService 리소스의 이름입니다.

Regex pattern: ^[-\w]+$

resourceGroupName
path True

string

리소스 그룹의 이름. 이름은 대소문자를 구분하지 않습니다.

subscriptionId
path True

string

uuid

대상 구독의 ID입니다. 값은 UUID여야 합니다.

api-version
query True

string

이 작업에 사용할 API 버전입니다.

응답

Name 형식 Description
200 OK

CommunicationServiceKeys

성공. 응답은 CommunicationService 액세스 키를 설명합니다.

Other Status Codes

ErrorResponse

작업이 실패한 이유를 설명하는 오류 응답입니다.

예제

List keys

Sample Request

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

Sample Response

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

정의

Name Description
CommunicationServiceKeys

CommunicationService의 액세스 키를 나타내는 클래스입니다.

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

CommunicationServiceKeys

CommunicationService의 액세스 키를 나타내는 클래스입니다.

Name 형식 Description
primaryConnectionString

string

communicationService 연결 문자열 primaryKey를 통해 생성됩니다.

primaryKey

string

기본 액세스 키입니다.

secondaryConnectionString

string

communicationService 연결 문자열 secondaryKey를 통해 생성됩니다.

secondaryKey

string

보조 액세스 키입니다.

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

Name 형식 Description
info

object

추가 정보입니다.

type

string

추가 정보 유형입니다.

ErrorDetail

오류 세부 정보입니다.

Name 형식 Description
additionalInfo

ErrorAdditionalInfo[]

오류 추가 정보입니다.

code

string

오류 코드입니다.

details

ErrorDetail[]

오류 세부 정보입니다.

message

string

오류 메시지입니다.

target

string

오류 대상입니다.

ErrorResponse

오류 응답

Name 형식 Description
error

ErrorDetail

Error 개체.