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. | |
| Querying a Specified API Version | hcloud GaussDBforNoSQL ShowApiVersion | This API is used to query version information of a specified API. |
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. |
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. | |
| Querying Database Specifications | hcloud GaussDBforNoSQL ListFlavorInfos | This API is used to query instance specifications under a specified condition. |
Querying Dedicated Resources
| API | Command | Description | Operation |
|---|---|---|---|
| Querying Dedicated Resources | hcloud GaussDBforNoSQL ListDedicatedResources | This API is used to query dedicated resources. |
Instance Management
| API | Command | Description | Operation |
|---|---|---|---|
| Creating an Instance | hcloud GaussDBforNoSQL CreateInstance | This API is used to create a DB instance. | |
| Querying Instances and Details | hcloud GaussDBforNoSQL ListInstances | This API is used to query instances and details based on specified conditions. | |
| Deleting an instance | hcloud GaussDBforNoSQL DeleteInstance | This API is used to delete an instance. | |
| Scaling Up Storage Space | hcloud GaussDBforNoSQL ResizeInstanceVolume | This API is used to scale up storage space of an instance. | |
| Adding Nodes for a Specified Cluster Instance | hcloud GaussDBforNoSQL ExpandInstanceNode | This API is used to add nodes for a specified cluster instance. | |
| Deleting Nodes from a Specified Cluster Instance | hcloud GaussDBforNoSQL ShrinkInstanceNode | This API is used to delete nodes from a specified cluster instance. | |
| Querying Changeable Specifications | hcloud GaussDBforNoSQL ListAvailableFlavorInfos | This API is used to query instance specifications that can be changed. | |
| Changing Instance Specifications | hcloud GaussDBforNoSQL ResizeInstance | This API is used to change specifications of an instance. | |
| Resetting the Administrator Password of an Instance | hcloud GaussDBforNoSQL ResetPassword | This API is used to change the administrator password of an instance. | |
| Changing an Instance Name | hcloud GaussDBforNoSQL UpdateInstanceName | This API is used to change an instance name. | |
| Changing the Security Group of an Instance | hcloud GaussDBforNoSQL UpdateSecurityGroup | This API is used to change the security group associated with an instance. | |
| Upgrading a Minor Version | hcloud GaussDBforNoSQL UpgradeDbVersion | This API is used to upgrade the minor version of an instance. | |
| Patching Databases In Batches | hcloud GaussDBforNoSQL BatchUpgradeDatabaseVersion | This API is used to patch databases in batches. | |
| Creating a Cold Data Storage | hcloud GaussDBforNoSQL CreateColdVolume | This API is used to create cold storage for an instance. | |
| Scaling Up Cold Storage | hcloud GaussDBforNoSQL ResizeColdVolume | This API is used to scale up cold storage of an instance. | |
| 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. | |
| Enabling or Disabling SSL | hcloud GaussDBforNoSQL SwitchSsl | This API is used to enable or disable SSL. | |
| Configuring an Automatic Scale-up Policy | hcloud GaussDBforNoSQL SetAutoEnlargePolicy | This API is used to configure an automatic scale-up policy. | |
| Restarting an Instance or a Node | hcloud GaussDBforNoSQL RestartInstance | This API is used to restart an instance or a node. | |
| Scaling Instance Storage | hcloud GaussDBforNoSQL ModifyVolume | This API is used to scale storage space of an instance. | |
| Checking Password Strength | hcloud GaussDBforNoSQL CheckWeekPassword | This API is used to check whether the password is weak. | |
| Changing a Database Port | hcloud GaussDBforNoSQL ModifyPort | This API is used to change the database port of an instance. | |
| 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. | |
| 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. | |
| Querying the Autoscaling Policy of Storage Space | hcloud GaussDBforNoSQL ShowAutoEnlargePolicy | This API is used to query the autoscaling policy for storage space. | |
| Querying High-Risk Commands | hcloud GaussDBforNoSQL ShowHighRiskCommands | This API is used to query high-risk commands supported by a GeminiDB Redis instance. | |
| Modifying High-Risk Commands | hcloud GaussDBforNoSQL UpdateHighRiskCommands | This API is used to modify high-risk commands in batches. | |
| 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. | |
| 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. | |
| Querying Hot Keys of a GeminiDB Redis Instance | hcloud GaussDBforNoSQL ShowRedisHotKeys | This API is used to query hot keys of a GeminiDB Redis instance. | |
| 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. | |
| 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. | |
| Querying an Automatic Scale-out Policy | hcloud GaussDBforNoSQL ShowAutoNodeExpansionPolicy | This API is used to query an automatic scale-out policy. | |
| Configuring an Automatic Scale-out Policy | hcloud GaussDBforNoSQL ModifyAutoNodeExpansionPolicy | This API is used to configure an automatic scale-out policy. | |
| Obtaining Sessions of a Node | hcloud GaussDBforNoSQL ListInstancesSession | This API is used to obtain all sessions of a node. | |
| Deleting Disabled Commands for a GeminiDB Redis Instance | hcloud GaussDBforNoSQL DeleteRedisDisabledCommands | This API is used to delete disabled commands for a GeminiDB Redis instance. | |
| Disabling Commands for a Redis Instance | hcloud GaussDBforNoSQL SaveRedisDisabledCommands | This API is used to disable commands for a GeminiDB Redis instance. | |
| Querying Disabled Commands for GeminiDB Redis Instances | hcloud GaussDBforNoSQL ShowRedisDisabledCommands | This API is used to query disabled commands for GeminiDB Redis instances. | |
| Deleting a Memory Mapping | hcloud GaussDBforNoSQL DeleteDbCacheMapping | This API is used to delete a memory mapping. | |
| Creating a Memory Mapping | hcloud GaussDBforNoSQL CreateDbCacheMapping | This API is used to create a memory mapping. | |
| Creating a Memory Acceleration Rule | hcloud GaussDBforNoSQL CreateDbCacheRule | This API is used to create a memory acceleration rule. | |
| Modifying a Memory Acceleration Rule | hcloud GaussDBforNoSQL UpdateDbCacheRule | This API is used to modify a memory acceleration rule. | |
| Deleting a Memory Acceleration Rule | hcloud GaussDBforNoSQL DeleteDbCacheRule | This API is used to delete a memory acceleration rule. | |
| 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. | |
| Querying Memory Acceleration Rules and Details | hcloud GaussDBforNoSQL ListDbCacheRules | This API is used to query memory acceleration rules and details. | |
| Enabling or Disabling Second-Level Monitoring | hcloud GaussDBforNoSQL SwitchSecondLevelMonitoring | This API is used to enable or disable monitoring by 5s for an instance. | |
| Querying Second-Level Monitoring Configurations | hcloud GaussDBforNoSQL ShowSecondLevelMonitoringStatus | This API is used to query configurations of second-level monitoring. | |
| Enabling or Disabling Instance Data Export | hcloud GaussDBforNoSQL SetInstanceDataDump | This API is used to enable or disable instance data export. | |
| Querying the Maintenance Period of an Instance | hcloud GaussDBforNoSQL ListInstanceMaintenanceWindow | This API is used to query the maintenance period of an instance. | |
| Setting the Maintenance Period of an Instance | hcloud GaussDBforNoSQL ModifyInstanceMaintenanceWindow | This API is used to set the maintenance period of a specified instance. | |
| Querying Scheduled Tasks | hcloud GaussDBforNoSQL ListNosqlTaskList | This API is used to query scheduled tasks based on specified conditions. | |
| Canceling a Scheduled Task | hcloud GaussDBforNoSQL CancelInstanceScheduleWindow | This API is used to cancel a scheduled task. | |
| Performing a Primary/Standby Switchover for GeminiDB Redis Instances | hcloud GaussDBforNoSQL SwitchOver | This API is used to perform a switchover between primary/standby instances. | |
| Obtaining the SSL Certificate Download Address | hcloud GaussDBforNoSQL ListSslCertDownloadAddresses | This API is used to obtain the SSL certificate download address. |
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. | |
| Querying an Automated Backup Policy | hcloud GaussDBforNoSQL ShowBackupPolicy | This API is used to query an automated backup policy. | |
| Querying the Instances That Can Be Restored | hcloud GaussDBforNoSQL ShowRestorableList | This API is used to query the instances that can be restored. | |
| 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. | |
| Deleting a Manual Backup | hcloud GaussDBforNoSQL DeleteBackup | This API is used to delete a manual backup. | |
| Stopping a Backup | hcloud GaussDBforNoSQL StopBackup | This API is used to stop a backup in case of an emergency. | |
| Restoring Data to an Existing Instance | hcloud GaussDBforNoSQL RestoreExistingInstance | This API is used to restore data to an existing instance. | |
| 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. | |
| 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. | |
| Querying Backups | hcloud GaussDBforNoSQL ShowAllInstancesBackups | This API is used to query backups based on specified conditions. | |
| Querying Backups (Recommended) | hcloud GaussDBforNoSQL ShowAllInstancesBackupsNew | This API is used to query backups based on specified conditions. | |
| Querying Backups (Recommended) | hcloud GaussDBforNoSQL ListBackups | This API is used to query backups based on specified conditions. | |
| Creating a Manual Backup | hcloud GaussDBforNoSQL CreateBack | This API is used to create manual backups. | |
| Querying Instances in the Recycle Bin | hcloud GaussDBforNoSQL ListRecycleInstances | This API is used to query all instances in the recycle bin. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| Querying an Automated Backup Policy | hcloud GaussDBforNoSQL ShowBackupPolicies | This API is used to query an automated backup policy. | |
| Importing a Data File to an Existing Instance | hcloud GaussDBforNoSQL RestoreRedisData | This API is used to import data to an existing instance. |
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. | |
| Obtaining Parameter Templates | hcloud GaussDBforNoSQL ListConfigurations | This API is used to obtain parameter templates, including default and custom parameter templates of all instances. | |
| Creating a Parameter Template | hcloud GaussDBforNoSQL CreateConfiguration | This API is used to create a parameter template. | |
| Obtaining Parameter Templates | hcloud GaussDBforNoSQL ListConfigurationTemplates | This API is used to obtain parameter templates, including default and custom parameter templates of all instances. | |
| Modifying Parameters in a Parameter Template | hcloud GaussDBforNoSQL UpdateConfiguration | This API is used to modify parameters in a parameter template. | |
| Obtaining Parameters in a Specified Parameter Template | hcloud GaussDBforNoSQL ShowConfigurationDetail | This API is used to obtain information about parameters of a specified parameter template. | |
| Deleting a Parameter Template | hcloud GaussDBforNoSQL DeleteConfiguration | This API is used to delete a specified parameter template. | |
| Applying a Parameter Template | hcloud GaussDBforNoSQL ApplyConfiguration | This API is used to apply a parameter template to one or more instances. | |
| Modifying Parameters of a Specified Instance | hcloud GaussDBforNoSQL UpdateInstanceConfiguration | This API is used to modify parameters of a specified instance. | |
| Querying Instance Parameter Settings | hcloud GaussDBforNoSQL ShowInstanceConfiguration | This API is used to query instance parameter settings. | |
| Replicating a Parameter Template | hcloud GaussDBforNoSQL CopyConfiguration | This API is used to replicate a parameter template. | |
| Comparing Parameter Templates | hcloud GaussDBforNoSQL CompareConfiguration | This API is used to compare two parameter templates. | |
| Querying APIs That Support Parameter Templates | hcloud GaussDBforNoSQL ListConfigurationDatastores | This API is used to query APIs that support parameter templates. | |
| 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. | |
| 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. | |
| Viewing Application Records of a Parameter Template | hcloud GaussDBforNoSQL ShowApplyHistory | - | |
| Applying a Parameter Template | hcloud GaussDBforNoSQL ApplyConfigurationToInstances | This API is used to apply a parameter template to one or more instances. | |
| Modifying Parameters of a Specified Instance | hcloud GaussDBforNoSQL UpdateInstanceConfigurations | This API is used to modify parameters of a specified instance. |
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. | |
| Querying an Instance by Tag | hcloud GaussDBforNoSQL ListInstancesByResourceTags | This API is used to query a specified instance by tag. | |
| 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. | |
| Querying Tags of an Instance | hcloud GaussDBforNoSQL ListInstanceTags | This API is used to query tags of a specified instance. | |
| Querying Tags of a Specified Project | hcloud GaussDBforNoSQL ListProjectTags | This API is used to query tags of a specified project. |
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. | |
| Querying the Desensitization Status of Slow Query Logs | hcloud GaussDBforNoSQL ShowSlowLogDesensitization | This API is used to query the desensitization status of slow query logs. | |
| Querying Database Error Logs | hcloud GaussDBforNoSQL ShowErrorLog | This API is used to query database error logs. | |
| Querying Slow Query Logs of a DB Instance | hcloud GaussDBforNoSQL ListSlowLogs | This API is used to query slow query logs of a DB instance. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| Associating Instances with an LTS Log Stream | hcloud GaussDBforNoSQL SaveLtsConfigs |
| |
| 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. | |
| Querying LTS Log Configurations | hcloud GaussDBforNoSQL ListLtsConfigs | This API is used to query the LTS log configuration information associated with an instance by page. | |
| 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. |
Quota Management
| API | Command | Description | Operation |
|---|---|---|---|
| Querying Quotas | hcloud GaussDBforNoSQL ShowQuotas | This API is used to query GeminiDB resource quotas of a tenant. |
Enterprise Project Management
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. | |
| 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. |
Task Management
| API | Command | Description | Operation |
|---|---|---|---|
| Querying Tasks and Details | hcloud GaussDBforNoSQL ListJobs | This API is used to query tasks (by default) and details. |
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. | |
| 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. | |
| Changing Permissions for a GeminiDB Redis Database Account | hcloud GaussDBforNoSQL ModifyDbUserPrivilege | This API is used to change permissions for a GeminiDB Redis database account. | |
| Creating a GeminiDB Redis Database Account | hcloud GaussDBforNoSQL CreateDbUser | This API is used to create a database account for a GeminiDB Redis instance. | |
| Deleting a GeminiDB Redis Database Account | hcloud GaussDBforNoSQL DeleteDbUser | This API is used to delete a database account of a GeminiDB Redis instance. | |
| 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. | |
| 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. |
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. | |
| Obtaining Instance Sessions | hcloud GaussDBforNoSQL ListInstanceSessions | This API is used to obtain instance sessions. | |
| Closing Sessions of All Nodes on an Instance | hcloud GaussDBforNoSQL ClearInstanceSessions | This API is used to close sessions of all nodes on an instance. | |
| Querying Session Statistics of an Instance Node | hcloud GaussDBforNoSQL ListInstancesSessionStatistics | This API is used to query session statistics of an instance node. |
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. | |
| 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. | |
| 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. | |
| Removing an Active-Active Relationship | hcloud GaussDBforNoSQL DeleteGeminiDbDualActive | This API is used to remove the active-active relationship of instances across regions. | |
| 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. |
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. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot