accounts_keys
Creates, updates, deletes, gets or lists an accounts_keys resource.
Overview
| Name | accounts_keys |
| Type | Resource |
| Id | azure.cognitive_services.accounts_keys |
Fields
The following fields are returned by SELECT queries:
- list
Returns with a response body containing the subscription keys for the resource: key1
The first API key for authentication when client calls the API endpoint.
key2
The second API key for authentication when client calls the API endpoint.
| Name | Datatype | Description |
|---|---|---|
key1 | string | Gets the value of key 1. |
key2 | string | Gets the value of key 2. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | resourceGroupName, accountName, subscriptionId | Lists the account keys for the specified Cognitive Services account. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
accountName | string | The name of Cognitive Services account. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
SELECT examples
- list
Lists the account keys for the specified Cognitive Services account.
SELECT
key1,
key2
FROM azure.cognitive_services.accounts_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;