Help Center/ GeminiDB/ CLI Reference/ CLI Command Reference
Updated on 2026-11-16 GMT+08:00

CLI Command Reference

Querying API Versions

API

Command

Description

Operation

Querying Supported API Versions

hcloud GaussDBforNoSQL ListApiVersion

This API is used to query the supported API versions.

Debug

Querying a Specified API Version

hcloud GaussDBforNoSQL ShowApiVersion

This API is used to query version information of a specified API.

Debug

Querying Database Version Information

API

Command

Description

Operation

Querying Database Version Information of a Specified Type of Instances

hcloud GaussDBforNoSQL ListDatastores

This API is used to query database version information of a specified type of instances.

Debug

Querying All Instance Specifications

API

Command

Description

Operation

Querying All Instance Specifications Under a Specified Condition

hcloud GaussDBforNoSQL ListFlavors

This API is used to query all instance specifications under a specified condition.

Debug

Querying Database Specifications

hcloud GaussDBforNoSQL ListFlavorInfos

This API is used to query instance specifications under a specified condition.

Debug

Querying Dedicated Resources

API

Command

Description

Operation

Querying Dedicated Resources

hcloud GaussDBforNoSQL ListDedicatedResources

This API is used to query dedicated resources.

Debug

Instance Management

API

Command

Description

Operation

Creating an Instance

hcloud GaussDBforNoSQL CreateInstance

This API is used to create a DB instance.

Debug

Querying Instances and Details

hcloud GaussDBforNoSQL ListInstances

This API is used to query instances and details based on specified conditions.

Debug

Deleting an instance

hcloud GaussDBforNoSQL DeleteInstance

This API is used to delete an instance.

Debug

Scaling Up Storage Space

hcloud GaussDBforNoSQL ResizeInstanceVolume

This API is used to scale up storage space of an instance.

Debug

Adding Nodes for a Specified Cluster Instance

hcloud GaussDBforNoSQL ExpandInstanceNode

This API is used to add nodes for a specified cluster instance.

Debug

Deleting Nodes from a Specified Cluster Instance

hcloud GaussDBforNoSQL ShrinkInstanceNode

This API is used to delete nodes from a specified cluster instance.

Debug

Querying Changeable Specifications

hcloud GaussDBforNoSQL ListAvailableFlavorInfos

This API is used to query instance specifications that can be changed.

Debug

Changing Instance Specifications

hcloud GaussDBforNoSQL ResizeInstance

This API is used to change specifications of an instance.

Debug

Resetting the Administrator Password of an Instance

hcloud GaussDBforNoSQL ResetPassword

This API is used to change the administrator password of an instance.

Debug

Changing an Instance Name

hcloud GaussDBforNoSQL UpdateInstanceName

This API is used to change an instance name.

Debug

Changing the Security Group of an Instance

hcloud GaussDBforNoSQL UpdateSecurityGroup

This API is used to change the security group associated with an instance.

Debug

Upgrading a Minor Version

hcloud GaussDBforNoSQL UpgradeDbVersion

This API is used to upgrade the minor version of an instance.

Debug

Patching Databases In Batches

hcloud GaussDBforNoSQL BatchUpgradeDatabaseVersion

This API is used to patch databases in batches.

Debug

Creating a Cold Data Storage

hcloud GaussDBforNoSQL CreateColdVolume

This API is used to create cold storage for an instance.

Debug

Scaling Up Cold Storage

hcloud GaussDBforNoSQL ResizeColdVolume

This API is used to scale up cold storage of an instance.

Debug

Binding or Unbinding an EIP

hcloud GaussDBforNoSQL ModifyPublicIp

This API is used to bind an EIP to an instance node or unbind an EIP from an instance node.

Debug

Enabling or Disabling SSL

hcloud GaussDBforNoSQL SwitchSsl

This API is used to enable or disable SSL.

Debug

Configuring an Automatic Scale-up Policy

hcloud GaussDBforNoSQL SetAutoEnlargePolicy

This API is used to configure an automatic scale-up policy.

Debug

Restarting an Instance or a Node

hcloud GaussDBforNoSQL RestartInstance

This API is used to restart an instance or a node.

Debug

Scaling Instance Storage

hcloud GaussDBforNoSQL ModifyVolume

This API is used to scale storage space of an instance.

Debug

Checking Password Strength

hcloud GaussDBforNoSQL CheckWeekPassword

This API is used to check whether the password is weak.

Debug

Changing a Database Port

hcloud GaussDBforNoSQL ModifyPort

This API is used to change the database port of an instance.

Debug

Deleting the Node that Fails to Be Added

hcloud GaussDBforNoSQL DeleteEnlargeFailNode

This API is used to delete the node that fails to be added to an instance.

Debug

Querying IP Addresses Required for Creating an Instance or Adding Nodes

hcloud GaussDBforNoSQL ShowIpNumRequirement

This API is used to query the number of IP addresses required for creating an instance or adding nodes for an instance.

Debug

Querying the Autoscaling Policy of Storage Space

hcloud GaussDBforNoSQL ShowAutoEnlargePolicy

This API is used to query the autoscaling policy for storage space.

Debug

Querying High-Risk Commands

hcloud GaussDBforNoSQL ShowHighRiskCommands

This API is used to query high-risk commands supported by a GeminiDB Redis instance.

Debug

Modifying High-Risk Commands

hcloud GaussDBforNoSQL UpdateHighRiskCommands

This API is used to modify high-risk commands in batches.

Debug

Starting and Stopping Nodes

hcloud GaussDBforNoSQL OfflineNodes

This API is used to stop a node and enable other nodes to take over services after a node cannot work properly due to an underlying fault.

Debug

Querying Big Keys of a GeminiDB Redis Instance

hcloud GaussDBforNoSQL ShowRedisBigKeys

This API is used to query big keys of a GeminiDB Redis instance. A key is considered as a big key if its value length is greater than the value of the bigkeys-string-threshold parameter or the number of elements in the key is greater than the value of the bigkeys-composite-threshold parameter. The key type can be string, hash, list, zset, set, or stream.

Debug

Querying Hot Keys of a GeminiDB Redis Instance

hcloud GaussDBforNoSQL ShowRedisHotKeys

This API is used to query hot keys of a GeminiDB Redis instance.

Debug

Querying the Password-Free Configuration of a GeminiDB Redis Instance

hcloud GaussDBforNoSQL ShowPasswordlessConfig

This API is used to query the password-free configuration of a GeminiDB Redis instance.

Debug

Modifying the Password-Free Configuration of a GeminiDB Redis Instance

hcloud GaussDBforNoSQL UpdatePasswordlessConfig

This API is used to modify the password-free configuration of a GeminiDB Redis instance.

Debug

Querying an Automatic Scale-out Policy

hcloud GaussDBforNoSQL ShowAutoNodeExpansionPolicy

This API is used to query an automatic scale-out policy.

Debug

Configuring an Automatic Scale-out Policy

hcloud GaussDBforNoSQL ModifyAutoNodeExpansionPolicy

This API is used to configure an automatic scale-out policy.

Debug

Obtaining Sessions of a Node

hcloud GaussDBforNoSQL ListInstancesSession

This API is used to obtain all sessions of a node.

Debug

Deleting Disabled Commands for a GeminiDB Redis Instance

hcloud GaussDBforNoSQL DeleteRedisDisabledCommands

This API is used to delete disabled commands for a GeminiDB Redis instance.

Debug

Disabling Commands for a Redis Instance

hcloud GaussDBforNoSQL SaveRedisDisabledCommands

This API is used to disable commands for a GeminiDB Redis instance.

Debug

Querying Disabled Commands for GeminiDB Redis Instances

hcloud GaussDBforNoSQL ShowRedisDisabledCommands

This API is used to query disabled commands for GeminiDB Redis instances.

Debug

Deleting a Memory Mapping

hcloud GaussDBforNoSQL DeleteDbCacheMapping

This API is used to delete a memory mapping.

Debug

Creating a Memory Mapping

hcloud GaussDBforNoSQL CreateDbCacheMapping

This API is used to create a memory mapping.

Debug

Creating a Memory Acceleration Rule

hcloud GaussDBforNoSQL CreateDbCacheRule

This API is used to create a memory acceleration rule.

Debug

Modifying a Memory Acceleration Rule

hcloud GaussDBforNoSQL UpdateDbCacheRule

This API is used to modify a memory acceleration rule.

Debug

Deleting a Memory Acceleration Rule

hcloud GaussDBforNoSQL DeleteDbCacheRule

This API is used to delete a memory acceleration rule.

Debug

Querying Memory Acceleration Mappings and Details

hcloud GaussDBforNoSQL ListDbCacheMappings

This API is used to query the memory mapping list and details based on specified conditions.

Debug

Querying Memory Acceleration Rules and Details

hcloud GaussDBforNoSQL ListDbCacheRules

This API is used to query memory acceleration rules and details.

Debug

Enabling or Disabling Second-Level Monitoring

hcloud GaussDBforNoSQL SwitchSecondLevelMonitoring

This API is used to enable or disable monitoring by 5s for an instance.

Debug

Querying Second-Level Monitoring Configurations

hcloud GaussDBforNoSQL ShowSecondLevelMonitoringStatus

This API is used to query configurations of second-level monitoring.

Debug

Enabling or Disabling Instance Data Export

hcloud GaussDBforNoSQL SetInstanceDataDump

This API is used to enable or disable instance data export.

Debug

Querying the Maintenance Period of an Instance

hcloud GaussDBforNoSQL ListInstanceMaintenanceWindow

This API is used to query the maintenance period of an instance.

Debug

Setting the Maintenance Period of an Instance

hcloud GaussDBforNoSQL ModifyInstanceMaintenanceWindow

This API is used to set the maintenance period of a specified instance.

Debug

Querying Scheduled Tasks

hcloud GaussDBforNoSQL ListNosqlTaskList

This API is used to query scheduled tasks based on specified conditions.

Debug

Canceling a Scheduled Task

hcloud GaussDBforNoSQL CancelInstanceScheduleWindow

This API is used to cancel a scheduled task.

Debug

Performing a Primary/Standby Switchover for GeminiDB Redis Instances

hcloud GaussDBforNoSQL SwitchOver

This API is used to perform a switchover between primary/standby instances.

Debug

Obtaining the SSL Certificate Download Address

hcloud GaussDBforNoSQL ListSslCertDownloadAddresses

This API is used to obtain the SSL certificate download address.

Debug

Backups and Restorations

API

Command

Description

Operation

Configuring an Automated Backup Policy

hcloud GaussDBforNoSQL SetBackupPolicy

This API is used to configure an automated backup policy.

Debug

Querying an Automated Backup Policy

hcloud GaussDBforNoSQL ShowBackupPolicy

This API is used to query an automated backup policy.

Debug

Querying the Instances That Can Be Restored

hcloud GaussDBforNoSQL ShowRestorableList

This API is used to query the instances that can be restored.

Debug

Querying the Time Window When a Backup Can Be Restored

hcloud GaussDBforNoSQL ListRestoreTime

This API is used to query the time window when a backup can be restored.

Debug

Deleting a Manual Backup

hcloud GaussDBforNoSQL DeleteBackup

This API is used to delete a manual backup.

Debug

Stopping a Backup

hcloud GaussDBforNoSQL StopBackup

This API is used to stop a backup in case of an emergency.

Debug

Restoring Data to an Existing Instance

hcloud GaussDBforNoSQL RestoreExistingInstance

This API is used to restore data to an existing instance.

Debug

Obtaining GeminiDB Cassandra Instance Database Information Restored Using Tables

hcloud GaussDBforNoSQL ListRestoreDatabases

This API is used to obtain the database information restored using tables of a GeminiDB Cassandra instance.

Debug

Obtaining GeminiDB Cassandra Instance Table Information Restored Using Tables

hcloud GaussDBforNoSQL ListRestoreTables

This API is used to obtain the table information restored using tables of a GeminiDB Cassandra instance.

Debug

Querying Backups

hcloud GaussDBforNoSQL ShowAllInstancesBackups

This API is used to query backups based on specified conditions.

Debug

Querying Backups (Recommended)

hcloud GaussDBforNoSQL ShowAllInstancesBackupsNew

This API is used to query backups based on specified conditions.

Debug

Querying Backups (Recommended)

hcloud GaussDBforNoSQL ListBackups

This API is used to query backups based on specified conditions.

Debug

Creating a Manual Backup

hcloud GaussDBforNoSQL CreateBack

This API is used to create manual backups.

Debug

Querying Instances in the Recycle Bin

hcloud GaussDBforNoSQL ListRecycleInstances

This API is used to query all instances in the recycle bin.

Debug

Setting the Policy for Restoring a GeminiDB Redis Instance to a Specified Point in Time

hcloud GaussDBforNoSQL SetRedisPitrPolicy

This API is used to set the policy for restoring a GeminiDB Redis instance to a specified point in time.

Debug

Querying the Policy for Restoring a GeminiDB Redis Instance to a Specified Point in Time

hcloud GaussDBforNoSQL ShowRedisPitrPolicy

Queries the policy for restoring a GeminiDB Redis instance to a specified point in time.

Debug

Querying the Point in Time to Which a GeminiDB Redis Instance Can Be Restored

hcloud GaussDBforNoSQL ListRedisPitrRestoreTime

This API is used to query the point in time to which a GeminiDB Redis instance can be restored.

Debug

Restoring the Current GeminiDB Redis Instance to a Specified Point in Time

hcloud GaussDBforNoSQL RestoreRedisPitr

This API is used to restore the current GeminiDB Redis instance to a specified point in time.

Debug

Querying Storage Used for Restoring a GeminiDB Redis Instance to a Specified Point in Time

hcloud GaussDBforNoSQL ShowRedisPitrInfo

This API is used to query storage used for restoring a GeminiDB Redis instance to a specified point in time.

Debug

Querying an Automated Backup Policy

hcloud GaussDBforNoSQL ShowBackupPolicies

This API is used to query an automated backup policy.

Debug

Importing a Data File to an Existing Instance

hcloud GaussDBforNoSQL RestoreRedisData

This API is used to import data to an existing instance.

Debug

Parameter Template Management

API

Command

Description

Operation

Resetting a Custom Parameter Template

hcloud GaussDBforNoSQL ResetParamGroupTemplate

This API is used to reset a custom parameter template.

Debug

Obtaining Parameter Templates

hcloud GaussDBforNoSQL ListConfigurations

This API is used to obtain parameter templates, including default and custom parameter templates of all instances.

Debug

Creating a Parameter Template

hcloud GaussDBforNoSQL CreateConfiguration

This API is used to create a parameter template.

Debug

Obtaining Parameter Templates

hcloud GaussDBforNoSQL ListConfigurationTemplates

This API is used to obtain parameter templates, including default and custom parameter templates of all instances.

Debug

Modifying Parameters in a Parameter Template

hcloud GaussDBforNoSQL UpdateConfiguration

This API is used to modify parameters in a parameter template.

Debug

Obtaining Parameters in a Specified Parameter Template

hcloud GaussDBforNoSQL ShowConfigurationDetail

This API is used to obtain information about parameters of a specified parameter template.

Debug

Deleting a Parameter Template

hcloud GaussDBforNoSQL DeleteConfiguration

This API is used to delete a specified parameter template.

Debug

Applying a Parameter Template

hcloud GaussDBforNoSQL ApplyConfiguration

This API is used to apply a parameter template to one or more instances.

Debug

Modifying Parameters of a Specified Instance

hcloud GaussDBforNoSQL UpdateInstanceConfiguration

This API is used to modify parameters of a specified instance.

Debug

Querying Instance Parameter Settings

hcloud GaussDBforNoSQL ShowInstanceConfiguration

This API is used to query instance parameter settings.

Debug

Replicating a Parameter Template

hcloud GaussDBforNoSQL CopyConfiguration

This API is used to replicate a parameter template.

Debug

Comparing Parameter Templates

hcloud GaussDBforNoSQL CompareConfiguration

This API is used to compare two parameter templates.

Debug

Querying APIs That Support Parameter Templates

hcloud GaussDBforNoSQL ListConfigurationDatastores

This API is used to query APIs that support parameter templates.

Debug

Querying Instances that a Parameter Template Can Be Applied To

hcloud GaussDBforNoSQL ShowApplicableInstances

This API is used to query instances that a parameter template can be applied to.

Debug

Querying the Parameter Group Change History

hcloud GaussDBforNoSQL ShowModifyHistory

This API is used to query the change history of a parameter group of a specified instance. Pagination query and parameter search are supported.

Debug

Viewing Application Records of a Parameter Template

hcloud GaussDBforNoSQL ShowApplyHistory

-

Debug

Applying a Parameter Template

hcloud GaussDBforNoSQL ApplyConfigurationToInstances

This API is used to apply a parameter template to one or more instances.

Debug

Modifying Parameters of a Specified Instance

hcloud GaussDBforNoSQL UpdateInstanceConfigurations

This API is used to modify parameters of a specified instance.

Debug

Tag Management

API

Command

Description

Operation

Querying an Instance by Tag

hcloud GaussDBforNoSQL ListInstancesByTags

This API is used to query a specified instance by tag.

Debug

Querying an Instance by Tag

hcloud GaussDBforNoSQL ListInstancesByResourceTags

This API is used to query a specified instance by tag.

Debug

Adding or Deleting Resource Tags in Batches

hcloud GaussDBforNoSQL BatchTagAction

This API is used to add tags to or delete tags from a specified DB instance in batches.

Debug

Querying Tags of an Instance

hcloud GaussDBforNoSQL ListInstanceTags

This API is used to query tags of a specified instance.

Debug

Querying Tags of a Specified Project

hcloud GaussDBforNoSQL ListProjectTags

This API is used to query tags of a specified project.

Debug

Log Management

API

Command

Description

Operation

Setting the Desensitization Status of Slow Query Logs

hcloud GaussDBforNoSQL SwitchSlowlogDesensitization

This API is used to set the desensitization status of slow query logs.

Debug

Querying the Desensitization Status of Slow Query Logs

hcloud GaussDBforNoSQL ShowSlowLogDesensitization

This API is used to query the desensitization status of slow query logs.

Debug

Querying Database Error Logs

hcloud GaussDBforNoSQL ShowErrorLog

This API is used to query database error logs.

Debug

Querying Slow Query Logs of a DB Instance

hcloud GaussDBforNoSQL ListSlowLogs

This API is used to query slow query logs of a DB instance.

Debug

Querying Slow Query Logs of GeminiDB Redis Instances

hcloud GaussDBforNoSQL ListRedisSlowLogs

This API is used to query slow query logs of a GeminiDB Redis instance by keyword.

Debug

Querying Slow Query Logs of GeminiDB Cassandra Instances

hcloud GaussDBforNoSQL ListCassandraSlowLogs

This API is used to query slow query logs of a GeminiDB Cassandra instance by keyword.

Debug

Querying Slow Query Logs of GeminiDB Mongo Instances

hcloud GaussDBforNoSQL ListMongodbSlowLogs

This API is used to query slow query logs of a GeminiDB Mongo instance by keyword.

Debug

Querying Slow Query Logs of GeminiDB Influx Instances

hcloud GaussDBforNoSQL ListInfluxdbSlowLogs

This API is used to query slow query logs of a GeminiDB Influx instance by keyword.

Debug

Associating Instances with an LTS Log Stream

hcloud GaussDBforNoSQL SaveLtsConfigs

  • After you have associated an instance with a Log Tank Service (LTS) log stream, logs of the instance are automatically uploaded to the associated LTS log stream.

Debug

Disassociating Instances from an LTS Log Stream

hcloud GaussDBforNoSQL DeleteLtsConfigs

After you have disassociated instances from an LTS log stream, logs of these instances are not automatically uploaded to the associated LTS log stream.

Debug

Querying LTS Log Configurations

hcloud GaussDBforNoSQL ListLtsConfigs

This API is used to query the LTS log configuration information associated with an instance by page.

Debug

Querying Error Logs of GeminiDB Mongo Instances

hcloud GaussDBforNoSQL ListMongodbErrorLogs

This API is used to query error logs of a GeminiDB Mongo instance by keyword.

Debug

Quota Management

API

Command

Description

Operation

Querying Quotas

hcloud GaussDBforNoSQL ShowQuotas

This API is used to query GeminiDB resource quotas of a tenant.

Debug

Enterprise Project Management

API

Command

Description

Operation

Querying Enterprise Project Quotas

hcloud GaussDBforNoSQL ListEpsQuotas

This API is used to query enterprise project quotas.

Debug

Modifying Enterprise Project Quotas

hcloud GaussDBforNoSQL ModifyEpsQuotas

This API is used to modify enterprise project quotas.

Debug

Instance Load Balancer Management

API

Command

Description

Operation

Configuring the Blacklist or Whitelist of Load Balancer IP Addresses

hcloud GaussDBforNoSQL SwitchIpGroup

This API is used to configure the blacklist or whitelist of load balancer IP addresses. The previous settings are overwritten each time this API is called. After this function is disabled, the source IP address is not restricted.

Debug

Querying the Blacklist or Whitelist of Load Balancer IP Addresses

hcloud GaussDBforNoSQL ShowElbIpGroup

This API is used to query the blacklist or whitelist of load balancer IP addresses.

Debug

Task Management

API

Command

Description

Operation

Querying Tasks and Details

hcloud GaussDBforNoSQL ListJobs

This API is used to query tasks (by default) and details.

Debug

Database and Account Management

API

Command

Description

Operation

Performing Operations on GeminiDB Instances

hcloud GaussDBforNoSQL UpdateDatabases

This API is used to perform operations on GeminiDB instances.

Debug

Resetting the Password of a GeminiDB Redis Database Account

hcloud GaussDBforNoSQL ResetDbUserPassword

This API is used to reset the password for a GeminiDB Redis database account.

Debug

Changing Permissions for a GeminiDB Redis Database Account

hcloud GaussDBforNoSQL ModifyDbUserPrivilege

This API is used to change permissions for a GeminiDB Redis database account.

Debug

Creating a GeminiDB Redis Database Account

hcloud GaussDBforNoSQL CreateDbUser

This API is used to create a database account for a GeminiDB Redis instance.

Debug

Deleting a GeminiDB Redis Database Account

hcloud GaussDBforNoSQL DeleteDbUser

This API is used to delete a database account of a GeminiDB Redis instance.

Debug

Obtaining the GeminiDB Redis Database Account List and Details

hcloud GaussDBforNoSQL ListDbUsers

This API is used to obtain the GeminiDB Redis database account list and details.

Debug

Obtaining All Databases in a GeminiDB Redis Instance

hcloud GaussDBforNoSQL ListInstanceDatabases

This API is used to obtain the database list for a GeminiDB Redis instance.

Debug

Connection Management

API

Command

Description

Operation

Closing Sessions of an Instance Node

hcloud GaussDBforNoSQL DeleteInstancesSession

This API is used to close sessions of an instance node.

Debug

Obtaining Instance Sessions

hcloud GaussDBforNoSQL ListInstanceSessions

This API is used to obtain instance sessions.

Debug

Closing Sessions of All Nodes on an Instance

hcloud GaussDBforNoSQL ClearInstanceSessions

This API is used to close sessions of all nodes on an instance.

Debug

Querying Session Statistics of an Instance Node

hcloud GaussDBforNoSQL ListInstancesSessionStatistics

This API is used to query session statistics of an instance node.

Debug

DR Management

API

Command

Description

Operation

Setting the Percentage of Faulty Nodes to Be Taken Over

hcloud GaussDBforNoSQL SetDisasterRecoverySettings

This API is used to set the percentage of faulty nodes to be taken over in case of failover.

Debug

Querying the Percentage of Faulty Nodes to Be Taken Over

hcloud GaussDBforNoSQL ShowDisasterRecoverySettings

This API is used to query the percentage of faulty nodes to be taken over in case of failover.

Debug

Creating an Active-Active Relationship

hcloud GaussDBforNoSQL CreateGeminiDbDualActive

This API allows you to create active-active instances in different regions, so that their data can be synchronized.

Debug

Removing an Active-Active Relationship

hcloud GaussDBforNoSQL DeleteGeminiDbDualActive

This API is used to remove the active-active relationship of instances across regions.

Debug

Querying Regions Where an Active-Active Relationship Can Be Created

hcloud GaussDBforNoSQL ShowInstanceBiactiveRegions

This API is used to query the regions where an active-active relationship can be created.

Debug

Database Account Management

API

Command

Description

Operation

Changing a Load Balancer Address

hcloud GaussDBforNoSQL UpdateInstanceLb

This API is used to change a load balancer address.

Debug