Skip to main content

keys

Creates, updates, deletes, gets or lists a keys resource.

Overview

Namekeys
TypeResource
Idazure_isv.redis.keys

Fields

The following fields are returned by SELECT queries:

Lists the keys for the specified Redis cache.

NameDatatypeDescription
primaryKeystringThe current primary key that clients can use to authenticate with Redis cache.
secondaryKeystringThe current secondary key that clients can use to authenticate with Redis cache.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, name, subscriptionIdRetrieve a Redis cache's access keys. This operation requires write permission to the cache resource.

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.

NameDatatypeDescription
namestringThe name of the Redis cache.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.

SELECT
primaryKey,
secondaryKey
FROM azure_isv.redis.keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND name = '{{ name }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;