databases_keys
Creates, updates, deletes, gets or lists a databases_keys resource.
Overview
| Name | databases_keys |
| Type | Resource |
| Id | azure_isv.redis_enterprise.databases_keys |
Fields
The following fields are returned by SELECT queries:
- list
The access keys for the specified database.
| Name | Datatype | Description |
|---|---|---|
primaryKey | string | The current primary key that clients can use to authenticate |
secondaryKey | string | The current secondary key that clients can use to authenticate |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | resourceGroupName, clusterName, databaseName, subscriptionId | Retrieves the access keys for the Redis Enterprise database. |
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 |
|---|---|---|
clusterName | string | The name of the Redis Enterprise cluster. |
databaseName | string | The name of the Redis Enterprise database. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
SELECT examples
- list
Retrieves the access keys for the Redis Enterprise database.
SELECT
primaryKey,
secondaryKey
FROM azure_isv.redis_enterprise.databases_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;