admin_keys
Creates, updates, deletes, gets or lists a admin_keys
resource.
Overview
Name | admin_keys |
Type | Resource |
Id | azure.search.admin_keys |
Fields
Name | Datatype | Description |
---|---|---|
primaryKey | string | The primary admin API key of the search service. |
secondaryKey | string | The secondary admin API key of the search service. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, searchServiceName, subscriptionId | Gets the primary and secondary admin API keys for the specified Azure AI Search service. |
regenerate | EXEC | keyKind, resourceGroupName, searchServiceName, subscriptionId | Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. |
SELECT
examples
Gets the primary and secondary admin API keys for the specified Azure AI Search service.
SELECT
primaryKey,
secondaryKey
FROM azure.search.admin_keys
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND searchServiceName = '{{ searchServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';