CognitiveServicesAccounts

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey

Changed on

Regenerates the specified account key for the specified Cognitive Services account.

Request

  • Base URL
    https://management.azure.com
  • Auth
    OAuth 2
    Implicithttps://login.microsoftonline.com/common/oauth2/authorize
    Scopesuser_impersonation

Path parameters

subscriptionIdstring required

The ID of the target subscription.

resourceGroupNamestring required

The name of the resource group. The name is case insensitive.

accountNamestring required

The name of Cognitive Services account.

Query parameters

api-versionstring required

The API version to use for this operation.

Request body

keyName'Key1' | 'Key2' required

key name to generate (Key1|Key2)

Response

Azure operation completed successfully.

key1string

Gets the value of key 1.

key2string

Gets the value of key 2.

Changes

  • 2016-02-01-previewd0eb21b3d2a7Revision changes
    • breaking

      added the new path request parameter resourceGroupName

    • breaking

      added the new path request parameter subscriptionId

    • breaking

      added the new required query request parameter api-version