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

NameDatatypeDescription
clusterNametextfield from the properties object
encryptiontextfield from the properties object
high_availabilitytextfield from the properties object
host_nametextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
minimum_tls_versiontextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
redis_versiontextfield from the properties object
redundancy_modetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
tagstextResource tags.
zonestextThe Availability Zones where this cluster will be deployed.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdGets information about a Redis Enterprise cluster
listSELECTsubscriptionIdLists all Redis Enterprise clusters in the specified subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all Redis Enterprise clusters in a resource group.
createINSERTclusterName, resourceGroupName, subscriptionId, data__skuCreates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
deleteDELETEclusterName, resourceGroupName, subscriptionIdDeletes a Redis Enterprise cache cluster.
updateUPDATEclusterName, resourceGroupName, subscriptionIdUpdates an existing Redis Enterprise cluster

SELECT examples

Lists all Redis Enterprise clusters in the specified subscription.

SELECT
clusterName,
encryption,
high_availability,
host_name,
identity,
location,
minimum_tls_version,
private_endpoint_connections,
provisioning_state,
redis_version,
redundancy_mode,
resourceGroupName,
resource_state,
sku,
subscriptionId,
tags,
zones
FROM azure_isv.redis_enterprise.vw_redis_enterprises
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new redis_enterprises resource.

/*+ create */
INSERT INTO azure_isv.redis_enterprise.redis_enterprises (
clusterName,
resourceGroupName,
subscriptionId,
data__sku,
sku,
zones,
identity,
properties,
tags,
location
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ zones }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a redis_enterprises resource.

/*+ update */
UPDATE azure_isv.redis_enterprise.redis_enterprises
SET
sku = '{{ sku }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
tags = '{{ tags }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified redis_enterprises resource.

/*+ delete */
DELETE FROM azure_isv.redis_enterprise.redis_enterprises
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';