Skip to main content

redis_enterprises

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

Overview

Nameredis_enterprises
TypeResource
Idazure_isv.redis_enterprise.redis_enterprises

Fields

The following fields are returned by SELECT queries:

The request succeeded, response body contains the requested details.

NameDatatypeDescription
identityobjectThe identity of the resource.
locationstringThe geo-location where the resource lives
propertiesobjectOther properties of the cluster. (title: Redis Enterprise cluster properties)
skuobjectThe resource model definition representing SKU
tagsobjectResource tags.
zonesarrayThe Availability Zones where this cluster will be deployed.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, clusterName, subscriptionIdGets information about a Redis Enterprise cluster
list_by_resource_groupselectresourceGroupName, subscriptionIdLists all Redis Enterprise clusters in a resource group.
listselectsubscriptionIdLists all Redis Enterprise clusters in the specified subscription.
createinsertresourceGroupName, clusterName, subscriptionId, data__skuCreates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
updateupdateresourceGroupName, clusterName, subscriptionIdUpdates an existing Redis Enterprise cluster
deletedeleteresourceGroupName, clusterName, subscriptionIdDeletes a Redis Enterprise cache cluster.

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
clusterNamestringThe name of the Redis Enterprise cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets information about a Redis Enterprise cluster

SELECT
identity,
location,
properties,
sku,
tags,
zones
FROM azure_isv.redis_enterprise.redis_enterprises
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster

INSERT INTO azure_isv.redis_enterprise.redis_enterprises (
data__sku,
data__zones,
data__identity,
data__properties,
data__tags,
data__location,
resourceGroupName,
clusterName,
subscriptionId
)
SELECT
'{{ sku }}' /* required */,
'{{ zones }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ subscriptionId }}'
RETURNING
identity,
location,
properties,
sku,
tags,
zones
;

UPDATE examples

Updates an existing Redis Enterprise cluster

UPDATE azure_isv.redis_enterprise.redis_enterprises
SET
data__sku = '{{ sku }}',
data__properties = '{{ properties }}',
data__identity = '{{ identity }}',
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
identity,
location,
properties,
sku,
tags,
zones;

DELETE examples

Deletes a Redis Enterprise cache cluster.

DELETE FROM azure_isv.redis_enterprise.redis_enterprises
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;