Accounts - List Keys

Listák a megadott Cognitive Services-fiók fiókkulcsait.

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

URI-paraméterek

Name In Kötelező Típus Description
accountName
path True

string

A Cognitive Services-fiók neve.

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

resourceGroupName
path True

string

Az erőforráscsoport neve. A név megkülönbözteti a kis- és nagybetűket.

subscriptionId
path True

string

A cél-előfizetés azonosítója.

api-version
query True

string

A művelethez használandó API-verzió.

Válaszok

Name Típus Description
200 OK

ApiKeys

Egy választörzset ad vissza, amely tartalmazza az erőforrás előfizetési kulcsait: key1 A hitelesítés első API-kulcsa, amikor az ügyfél meghívja az API-végpontot.

key2 A hitelesítés második API-kulcsa, amikor az ügyfél meghívja az API-végpontot.

Other Status Codes

ErrorResponse

Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg

Példák

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"
}

Definíciók

Name Description
ApiKeys

A Cognitive Services-fiók hozzáférési kulcsai.

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

ErrorDetail

A hiba részletei.

ErrorResponse

Hibaválasz

ApiKeys

A Cognitive Services-fiók hozzáférési kulcsai.

Name Típus Description
key1

string

Lekéri az 1. kulcs értékét.

key2

string

Lekéri a 2. kulcs értékét.

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

Name Típus Description
info

object

A további információk.

type

string

A további információtípus.

ErrorDetail

A hiba részletei.

Name Típus Description
additionalInfo

ErrorAdditionalInfo[]

A hiba további információi.

code

string

A hibakód.

details

ErrorDetail[]

A hiba részletei.

message

string

A hibaüzenet.

target

string

A hibacél.

ErrorResponse

Hibaválasz

Name Típus Description
error

ErrorDetail

A hibaobjektum.