Skip to main content

databases

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

Overview

Namedatabases
TypeResource
Idazure_isv.redis_enterprise.databases

Fields

NameDatatypeDescription
access_keys_authenticationtextfield from the properties object
client_protocoltextfield from the properties object
clusterNametextfield from the properties object
clustering_policytextfield from the properties object
databaseNametextfield from the properties object
defer_upgradetextfield from the properties object
eviction_policytextfield from the properties object
geo_replicationtextfield from the properties object
modulestextfield from the properties object
persistencetextfield from the properties object
porttextfield from the properties object
provisioning_statetextfield from the properties object
redis_versiontextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, databaseName, resourceGroupName, subscriptionIdGets information about a database in a Redis Enterprise cluster.
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdGets all databases in the specified Redis Enterprise cluster.
createINSERTclusterName, databaseName, resourceGroupName, subscriptionIdCreates a database
deleteDELETEclusterName, databaseName, resourceGroupName, subscriptionIdDeletes a single database
updateUPDATEclusterName, databaseName, resourceGroupName, subscriptionIdUpdates a database
exportEXECclusterName, databaseName, resourceGroupName, subscriptionId, data__sasUriExports a database file from target database.
flushEXECclusterName, databaseName, resourceGroupName, subscriptionIdFlushes all the keys in this database and also from its linked databases.
force_link_to_replication_groupEXECclusterName, databaseName, resourceGroupName, subscriptionId, data__groupNickname, data__linkedDatabasesForcibly recreates an existing database on the specified cluster, and rejoins it to an existing replication group. IMPORTANT NOTE: All data in this database will be discarded, and the database will temporarily be unavailable while rejoining the replication group.
force_unlinkEXECclusterName, databaseName, resourceGroupName, subscriptionId, data__idsForcibly removes the link to the specified database resource.
importEXECclusterName, databaseName, resourceGroupName, subscriptionId, data__sasUrisImports database files to target database.
regenerate_keyEXECclusterName, databaseName, resourceGroupName, subscriptionId, data__keyTypeRegenerates the Redis Enterprise database's access keys.
upgrade_db_redis_versionEXECclusterName, databaseName, resourceGroupName, subscriptionIdUpgrades the database Redis version to the latest available.

SELECT examples

Gets all databases in the specified Redis Enterprise cluster.

SELECT
access_keys_authentication,
client_protocol,
clusterName,
clustering_policy,
databaseName,
defer_upgrade,
eviction_policy,
geo_replication,
modules,
persistence,
port,
provisioning_state,
redis_version,
resourceGroupName,
resource_state,
subscriptionId
FROM azure_isv.redis_enterprise.vw_databases
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.redis_enterprise.databases (
clusterName,
databaseName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ clusterName }}',
'{{ databaseName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a databases resource.

/*+ update */
UPDATE azure_isv.redis_enterprise.databases
SET
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified databases resource.

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