Help Center/ Data Admin Service/ clir/ CLI Command Reference
Updated on 2026-09-07 GMT+08:00

CLI Command Reference

API Version Queries

API Name

Command

Description

Operation

Querying API Versions

hcloud DAS ListApiVersions

This API is used to query API versions.

Go debug

Querying a Specified API Version

hcloud DAS ShowApiVersion

This API is used to query a specified API version.

Go debug

Intelligent O&M

API Name

Command

Description

Operation

Querying a SQL Execution Plan

hcloud DAS ShowSqlExecutionPlan

This API is used to query a SQL execution plan.

Go debug

Querying a SQL Execution Plan

hcloud DAS ShowSqlExplain

This API is used to query a SQL execution plan.

Go debug

Killing Sessions

hcloud DAS DeleteProcess

This API is used to kill sessions by user, database, or session ID.

Go debug

Querying Metadata Locks

hcloud DAS ListMetadataLocks

This API is used to query metadata locks.

Go debug

Querying InnoDB Lock Waits

hcloud DAS ListInnodbLocks

This API is used to query InnoDB lock waits.

Go debug

Querying Database Users

hcloud DAS ListDbUsers

This API is used to query database users registered on DAS. db_user_id returned by this API is required for calling other APIs (such as the API for querying instance sessions). This API does not return database user objects of an instance.

Go debug

Registering a Database User

hcloud DAS RegisterDbUser

This API is used to register the database username and password with the DAS system. A database user ID will be returned in response and is required for calling other APIs, such as the API for querying instance sessions. The database password is encrypted and used for DAS API calls only. This API does not create database user objects on an instance. Ensure that the username and password you entered are valid and correct.

Go debug

Querying Instance Sessions

hcloud DAS ListProcesses

This API is used to query instance sessions by database or user.

Go debug

Querying a Specified Database User

hcloud DAS ShowDbUser

This API is used to query information of a specified database user. It does not query database user objects on an instance.

Go debug

Modifying a Database User

hcloud DAS UpdateDbUser

This API is used to change the username and password for a registered database user. This API does not change the user name and password of database user objects on an instance. Ensure that the username and password you entered are valid and correct.

Go debug

Deleting a Database User

hcloud DAS DeleteDbUser

This API is used to delete a registered database user. Only registered database users are deleted from the DAS system. Database user objects are not affected.

Go debug

Obtain the Space Analysis Data List

hcloud DAS ListSpaceAnalysis

This API is used to obtain the space analysis data list. The file system generated instance-level data, and the information_schema.tables table generates database-level and table-level data. Space & Metadata Analysis allows you to analyze a maximum of 10,000 tables. If tablespace data is missing, there may be too many instance tables, or the account password has not been saved. If the account password has not been saved, use the user management interface or page to save the database account. MySQL, GaussDB(for MySQL) and SQLServer are supported.

Go debug

Creating a Space Analysis Task

hcloud DAS CreateSpaceAnalysisTask

This API is used to create a space analysis task, for example, triggering re-analysis. MySQL and GaussDB(for MySQL) are supported.

Go debug

Enabling/Disabling SQL Explorer and Slow Query Log

hcloud DAS ChangeSqlSwitch

This API is used to enable or disable SQL Explorer. After this function is enabled, the instance performance loss is within 5%. Enabling SQL Explorer will allow DAS to store all SQL statement logs for analysis. You can set the retention period of SQL explorer data. After the retention period expires, the data is automatically deleted. If not specified, the data is retained for seven days.

Go debug

Querying Whether SQL Explorer and Slow Query Log Are Enabled

hcloud DAS ShowSqlSwitchStatus

This API is used to query whether SQL Explorer and Slow Query Log are enabled. Only paid instances are supported.

Go debug

Exporting Slow Query Logs

hcloud DAS ExportSlowQueryLogs

After Slow Query Log is enabled, you can export the slow query logs within a specified period at a time. The data can be obtained by page. Free instance only supports viewing data within the last hour.

Go debug

Exporting All SQL Statements

hcloud DAS ExportSqlStatements

After SQL Explorer is enabled, you can export the SQL explorer data within a specified period at a time. The data can be obtained by page. Only paid instances are supported.

Go debug

Export Full SQL Details

hcloud DAS ExportFullSqlDetails

After SQL Explorer is enabled, you can create an SQL insight task and export full SQL details by node, user name, database, or operation type. This function supports only paid instances.

Go debug

Querying the SQL Insight Task List

hcloud DAS ListFullSqlTasks

After SQL Explorer is enabled, you can query the SQL insight task list. Only paid instances are supported.

Go debug

Querying Intelligent O&M Quotas

hcloud DAS ShowQuotas

This API is used to query Intelligent O&M quotas.

Go debug

Querying Whether SQL Statement Concurrency Control Is Enabled

hcloud DAS ShowSqlLimitSwitchStatus

This API is used to query whether SQL statement concurrency control is enabled. Only MySQL instances are supported.

Go debug

Configuring SQL Statement Concurrency Control

hcloud DAS ChangeSqlLimitSwitchStatus

This API is used to configure SQL Statement Concurrency Control. Only MySQL databases are supported.

Go debug

Querying Concurrency Control Rules of SQL Statements

hcloud DAS ListSqlLimitRules

This API is used to query concurrency control rules of SQL statements. Only MySQL and PostgreSQL databases are supported.

Go debug

Creating a Concurrency Control Rule of SQL Statements

hcloud DAS CreateSqlLimitRules

This API is used to add a concurrency control rule of SQL statements. Only MySQL and PostgreSQL databases are supported.

Go debug

Deleting a Concurrency Control Rule of SQL Statements

hcloud DAS DeleteSqlLimitRules

This API is used to delete a concurrency control rule of SQL statements. Only MySQL and PostgreSQL databases are supported currently.

Go debug

Updating a Concurrency Control Rule of SQL Statements

hcloud DAS UpdateSqlLimitRules

Deleting a Concurrency Control Rule of SQL Statements. Only PostgreSQL databases are supported.

Go debug

Exporting Top SQL Statement Templates

hcloud DAS ExportTopSqlTemplatesDetails

After TopSQL is enabled, the top SQL template list is exported. Only paid instances are supported. The maximum query interval is one hour.

Go debug

Querying a SQL Statement Concurrency Control Task

hcloud DAS ShowSqlLimitJobInfo

This API is used to query information about the SQL statement concurrency control task with a specified ID.

Go debug

Exporting Slow SQL Statement Templates

hcloud DAS ExportSlowSqlTemplatesDetails

After this function is enabled, the slow SQL template list is exported. Free instance only supports viewing data within the last hour. The maximum query interval is one day.

Go debug

Exporting SQL Statement Execution Duration Ranges

hcloud DAS ExportTopSqlTrendDetails

After this function is enabled, execution durations of a SQL statement are exported. Only paid instances are supported. The maximum query interval is six hours.

Go debug

Executing a SQL Diagnosis

hcloud DAS CreateTuning

Executing a SQL diagnosis.

Go debug

Obtaining Diagnosis Results

hcloud DAS ShowTuning

This API is used to obtain diagnosis results.

Go debug

Exporting Slow SQL Statistics

hcloud DAS ExportSlowSqlStatistics

After this function is enabled, the slow SQL statistics list is exported.

Go debug

Querying the historical transaction switch

hcloud DAS ShowTransactionSwitchStatus

Querying the historical transaction switch.

Go debug

Enabling or Disabling the Historical Transaction Switch

hcloud DAS ChangeTransactionSwitchStatus

Enables or disables the historical transaction function. Only the MySQL engine is supported, and the full SQL or slow SQL function must be enabled.

Go debug

Querying the Historical Transaction List

hcloud DAS ListTransactions

Querying the Historical Transaction List.

Go debug

Create an export history transaction task

hcloud DAS CreateHistoryTransactionExportTask

After the DAS historical transaction collection switch is turned on, it supports the creation of a one-time export task for historical transaction data within a specified time range.

Go debug

Delete the obs file corresponding to the export historical transaction task

hcloud DAS DeleteHistoryTransactionExportTask

After the historical transaction collection switch is turned on, delete the OBS file corresponding to the historical transaction export task record.

Go debug

Query the historical transaction export task list

hcloud DAS ListHistoryTransactionExportTask

After the DAS historical transaction collection switch is turned on, the historical transaction export task list is queried.

Go debug

Query the details of the historical transaction export task

hcloud DAS ShowHistoryTransactionExportTaskInfo

After the DAS historical transaction collection switch is turned on, the details of the historical transaction export task are queried.

Go debug

Generate SQL Throttling Keywords based on Original SQL

hcloud DAS ParseSqlLimitRules

Generate SQL Throttling Keywords based on Original SQL. MySQL, MariaDB, and GaussDB(for MySQL) are supported.

Go debug

Exporting Slow SQL Trend

hcloud DAS ExportSlowSqlTrendDetails

After this function is enabled, the slow SQL trend list is exported. Free instance only supports viewing data within the last hour. The maximum query interval is one day.

Go debug

Exporting the list of risk instances

hcloud DAS ExportTopRiskInstances

Exporting the list of risk instances. The maximum query interval is one day.

Go debug

View the instance list on the Intelligent O&M page.

hcloud DAS ListCloudDbaInstances

View the instance list on the Intelligent O&M page.

Go debug

Creating an Instance Diagnosis Task

hcloud DAS CreateHealthReportTask

This API is used to create an instance diagnosis task.

Go debug

Querying Instance Diagnosis Reports

hcloud DAS ListHealthReportTask

Querying Instance Diagnosis Reports

Go debug

Obtaining an Instance Diagnosis Report

hcloud DAS ShowInstanceHealthReport

Obtaining an Instance Diagnosis Report

Go debug

Synchronize instance list

hcloud DAS SynchronizeInstances

Synchronize instance list.

Go debug

Querying Instance Distribution

hcloud DAS ListInstanceDistribution

Querying Instance Distribution

Go debug

Querying the List of Top Slow SQL Statements

hcloud DAS ListTopSlowLog

Querying the List of Top Slow SQL Statements

Go debug

Querying the List of Top Slow SQL Statements of an Instance

hcloud DAS ListInstanceTopSlowLog

Querying the List of Top Slow SQL Statements of an Instance

Go debug

Indicator information supported by a single indicator on multiple nodes

hcloud DAS ShowMetricNamesSupport

Indicator information supported by a single indicator on multiple nodes

Go debug

Obtaining the Node Information of a Single Instance

hcloud DAS ListInstanceNodesInfo

Obtaining the Node Information of a Single Instance

Go debug

Obtaining Data of a Single Indicator on Multiple Nodes

hcloud DAS ListInstanceMultiNodesSingleMetric

Obtaining Data of a Single Indicator on Multiple Nodes

Go debug

Querying Resource Risk Instance Risk Items

hcloud DAS ListRiskItems

Querying Resource Risk Instance Risk Items

Go debug

Querying Resource Risk Instance Risk Trends

hcloud DAS ListRiskTrend

Querying Resource Risk Instance Risk Trends

Go debug

set metric threshould

hcloud DAS SetThresholdForMetric

set metric threshould

Go debug

Setting the payment mode

hcloud DAS ChangeChargeMode

Setting the payment mode

Go debug

Setting the payment mode

hcloud DAS ChangePaymentModeNew

Setting the payment mode

Go debug

Creating a Full SQL Detail Parsing Task

hcloud DAS AddFullSqlTask

Creating a Full SQL Detail Parsing Task

Go debug

Configure full deadlock detection switch

hcloud DAS ChangeFullDeadLockSwitch

Enable or disable comprehensive deadlock monitoring

Go debug

Get Full Deadlock Switch Status

hcloud DAS ShowFullDeadLockSwitch

Retrieves the status of the full deadlock detection switch

Go debug

Retrieve complete deadlock information

hcloud DAS ShowFullDeadLockList

Get comprehensive deadlock records

Go debug

Get deadlock snapshot details

hcloud DAS ShowLatestDeadLockSnapshot

Retrieve detailed information about a deadlock snapshot

Go debug

List snapshots

hcloud DAS ListSnapshots

Query snapshot list

Go debug

Create snapshot

hcloud DAS CreateSnapshots

Create a snapshot

Go debug

Check AK/SK

hcloud DAS CheckCredential

Check AK/SK to verify whether the user's AK/SK can access the OBS bucket normally.

Go debug

Save AK/SK

hcloud DAS SaveCredential

Save AK/SK for backend tasks to access OBS and upload instance diagnostic reports.

Go debug

Querying Instance Diagnostic Report Settings

hcloud DAS ShowHealthReportSettings

Querying Instance Diagnostic Report Settings

Go debug

Update Instance Diagnostics Report Settings

hcloud DAS UpdateHealthReportSettings

Update Instance Diagnostics Report Settings

Go debug

built in account login

hcloud DAS LoginBuiltInAccount

built in account login

Go debug

built in account logoff

hcloud DAS LogoffBuiltInAccount

built in account logoff

Go debug

Automatically Recommend SQL Throttling Rules

hcloud DAS ShowDasRecommendSqlLimitRule

Automatically recommends SQL throttling rules based on conditions (including average execution time, count, maximum execution time, or a combination of the three criteria)

Go debug

Query auto-increment quota

hcloud DAS ListAutoIncrementUsage

Query auto-increment quota usage

Go debug

Querying Inspection Report List

hcloud DAS ListInspectionReport

Querying Inspection Report List

Go debug

Querying Email Records

hcloud DAS ListEmailRecord

Querying Email Records

Go debug

Querying Email Template List

hcloud DAS ListEmailTemplate

Querying Email Template List

Go debug

Creating an Email Template

hcloud DAS AddEmailTemplate

Creating an Email Template

Go debug

Modifying an Email Template

hcloud DAS UpdateEmailTemplate

Modifying an Email Template

Go debug

Deleting an Email Template

hcloud DAS DeleteEmailTemplate

Deleting an Email Template

Go debug

Batch Subscribe/Unsubscribe

hcloud DAS BatchSubscribeReport

Batch Subscribe/Unsubscribe

Go debug

Querying Instance Group List

hcloud DAS ListInstanceGroup

Querying Instance Group List

Go debug

Creating an Instance Group

hcloud DAS AddInstanceGroup

Creating an Instance Group

Go debug

Modifying an Instance Group

hcloud DAS UpdateInstanceGroup

Modifying an Instance Group

Go debug

Deleting an Instance Group

hcloud DAS DeleteInstanceGroup

Deleting an Instance Group

Go debug

Adding instances to the instance group

hcloud DAS AddInstanceToGroup

Adding instances to the instance group

Go debug

Sending emails in batches

hcloud DAS BatchSendEmail

Sending emails in batches

Go debug

Check AK/SK

hcloud DAS CheckCredentialForBatchInspection

Check AK/SK to verify whether the user's AK/SK can access the OBS bucket normally.

Go debug

Save AK/SK

hcloud DAS SaveCredentialForBatchInspection

Save AK/SK for backend tasks to access OBS and upload instance diagnostic reports.

Go debug

Querying AK/SK

hcloud DAS ShowCredential

Querying AK/SK, used to determine whether AK/SK has been saved.

Go debug

Query the lock blocking database list

hcloud DAS ListLockBlockingDb

Query the lock blocking database list.

Go debug

Query the lock blocking details list

hcloud DAS ListLockBlockingDetail

Query the lock blocking details list.

Go debug

Query the lock blocking relationship

hcloud DAS ListLockBlockingRelationship

Query the lock blocking relationship.

Go debug

Query the lock blocking statistics

hcloud DAS ShowLockBlockingStatistics

Query the lock blocking statistics.

Go debug

Query the lock blocking trend list

hcloud DAS ShowLockBlockingTrend

Query the lock blocking trend list.

Go debug

Query the lock blocking switch and retention hours

hcloud DAS ShowLockBlockingSwitch

Query the lock blocking switch and retention hours.

Go debug

Set the lock blocking switch and retention hours.

hcloud DAS SetLockBlockingSwitch

Set the lock blocking switch and retention hours. Only SQL Server DB instances are supported.

Go debug

Start Session Analysis

hcloud DAS StartAnalysisSession

Start session analysis

Go debug

Query Session Analysis Status

hcloud DAS ShowAnalysisSessionStatus

Query session analysis status

Go debug

Query Session Analysis Results

hcloud DAS ShowAnalysisSessionResult

Query session analysis results

Go debug

Get deadlock topology data

hcloud DAS ShowDeadLockTopology

Get deadlock topology data

Go debug

Analyze deadlock log

hcloud DAS ParseDeadLock

Analyze deadlock log

Go debug

Query deadlock log analysis result

hcloud DAS ShowDeadLockAnalysisResult

Query deadlock log analysis result

Go debug

Cancel shared connections

hcloud DAS CancelShareNew

Cancel shared connections

Go debug

Batch delete connections

hcloud DAS BatchDeleteConnectionNew

Batch delete connections

Go debug

Show latest instance health report info

hcloud DAS ShowLatestInstanceHealthReport

Show latest instance health report info

Go debug

Add sql limiting record

hcloud DAS AddSqlLimitingRecordNew

Add sql limiting record

Go debug

Show export full sql task info

hcloud DAS ShowExportTaskInfo

Show export full sql task info

Go debug

Determine whether this instance can use the cloud DBA function

hcloud DAS ShowWhetherUseCloudDba

Determine whether this instance can use the cloud DBA function

Go debug

Open quota inquiry

hcloud DAS ShowDasCloudDbaPrice

Open quota inquiry

Go debug

Query the status of the get-search-path switch

hcloud DAS ShowClouddbaGetSearchPathFlagNew

Query the status of the get-search-path switch

Go debug

Query the status of the deadlock switch

hcloud DAS ShowDeadLockSwitchNew

Query the status of the deadlock switch

Go debug

Query the supported engine types

hcloud DAS ShowSupportedEngines

Query the supported engine types

Go debug

Turn on/off the full SQL switch

hcloud DAS SwitchFullsqlSwitch

Turn on/off the full SQL switch

Go debug

Obtain the full deadlock switch

hcloud DAS ShowFullDeadLockSwitchNew

Obtain the full deadlock switch

Go debug

Obtain product-level security protocols

hcloud DAS ShowGlobalPrivacyNew

Obtain product-level security protocols

Go debug

Query the history-transaction switch

hcloud DAS ShowHistoryTransactionSwitchNew

Query the history-transaction switch

Go debug

Query the long-history-transaction switch

hcloud DAS ShowLongHistoryTransactionSwitchNew

Query the long-history-transaction switch

Go debug

Query the index-usage switch

hcloud DAS ShowIndexUsageSwitchNew

Query the index-usage switch

Go debug

Query the slow-log switch

hcloud DAS ShowSlowLogSwitchNew

Query the slow-log switch

Go debug

Query the sql-limiting switch

hcloud DAS ShowSqlLimitingSwitchNew

Query the sql-limiting switch

Go debug

List database names

hcloud DAS ListDbNames

List database names

Go debug

List database names

hcloud DAS ShowNameList

List database names

Go debug

Query the kill process task switch

hcloud DAS ShowKillProcessTaskSwitch

Query the kill process task switch

Go debug

Development Tool

API Name

Command

Description

Operation

Setting a Sharing Link

hcloud DAS CreateShareConnections

Setting a sharing link.

Go debug

Deleting a Sharing Link

hcloud DAS CancelShareConnections

Deleting a sharing link.

Go debug

Creating an Instance Connection

hcloud DAS CreateInstanceConnection

This API is used to create an instance connection.

Go debug

Querying the Instance Connection List

hcloud DAS ListConnections

This API is used to querying the instance connection list.

Go debug

Executing an Export Task Immediately

hcloud DAS ExecuteExportTask

Executing an export task immediately.

Go debug

Executing an Import Task Immediately

hcloud DAS ExecuteImportTask

Executing an import task immediately.

Go debug