Accounts - List Keys

지정된 Cognitive Services 계정의 계정 키를 Lists.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys?api-version=2023-05-01

URI 매개 변수

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

string

Cognitive Services 계정의 이름입니다.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$

resourceGroupName
path True

string

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

subscriptionId
path True

string

대상 구독의 ID입니다.

api-version
query True

string

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

응답

Name 형식 Description
200 OK

ApiKeys

리소스에 대한 구독 키가 포함된 응답 본문을 사용하여 반환합니다. key1 클라이언트가 API 엔드포인트를 호출할 때 인증을 위한 첫 번째 API 키입니다.

key2 클라이언트가 API 엔드포인트를 호출할 때 인증을 위한 두 번째 API 키입니다.

Other Status Codes

ErrorResponse

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

예제

List Keys

Sample Request

POST https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/myAccount/listKeys?api-version=2023-05-01

Sample Response

{
  "key1": "KEY1",
  "key2": "KEY2"
}

정의

Name Description
ApiKeys

Cognitive Services 계정에 대한 액세스 키입니다.

ErrorAdditionalInfo

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

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

ApiKeys

Cognitive Services 계정에 대한 액세스 키입니다.

Name 형식 Description
key1

string

키 1의 값을 가져옵니다.

key2

string

키 2의 값을 가져옵니다.

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 개체.