Help Center/ SecMaster/ CLI Reference/ CLI Command Reference/ CLI Command Reference (V2)
Updated on 2026-08-27 GMT+08:00

CLI Command Reference (V2)

Alert Rule Template Management

API Name

Command

Description

Operation

Querying the Alert Rule Template List

hcloud SecMaster ListAlertRuleTemplates/v2

This API is used to query the list of alert rule templates.

Go debug

Viewing an Alert Rule Template

hcloud SecMaster ShowAlertRuleTemplate/v2

This API is used to view an alert rule template.

Go debug

Querying the Alert Rule Template Overview

hcloud SecMaster ListAlertRuleTemplateMetrics/v2

This API is used to query the alert rule template overview.

Go debug

Security Analysis

API Name

Command

Description

Operation

Creating an Ad Hoc Query

hcloud SecMaster CreateAdhocQuery/v2

This API is used to create an ad hoc query.

Go debug

Obtaining Ad Hoc Query Results

hcloud SecMaster ShowAdhocResult/v2

This API is used to obtain an ad hoc query result.

Go debug

Disabling the Query Operation

hcloud SecMaster DeleteAdhocQuery/v2

This API is used to disable the query operation.

Go debug

Creating Ad Hoc SQL Parameter Rendering

hcloud SecMaster CreateSqlRender/v2

This API is used create ad hoc SQL parameter rendering.

Go debug

Querying Table Logs

hcloud SecMaster ListTableLogs/v2

This API is used to query table logs.

Go debug

Querying a Table Histogram

hcloud SecMaster ListTableHistograms/v2

This API is used to query a table histogram.

Go debug

Creating a Security Analysis Query

hcloud SecMaster CreateTableAnalysis/v2

This API is used to create a security analysis query.

Go debug

Data Consumption Management

API Name

Command

Description

Operation

Querying Real-Time Consumption Configurations

hcloud SecMaster ShowDataConsumption/v2

This API is used to query the real-time data consumption configurations.

Go debug

Enabling Real-time Consumption

hcloud SecMaster EnableDataConsumption/v2

This API is used to enable real-time consumption.

Go debug

Disabling Real-Time Consumption

hcloud SecMaster DisableDataConsumption/v2

Disabling Real-Time Consumption

Go debug

SQL Verification

API Name

Command

Description

Operation

Creating an SQL Verification

hcloud SecMaster CreateSqlValidation/v2

This API is used to create an SQL verification.

Go debug

Alert Rule Management

API Name

Command

Description

Operation

Querying the Alert Rule List

hcloud SecMaster ListAlertRules/v2

This API is used to query the list of alert rules.

Go debug

Creating an Alert Rule

hcloud SecMaster CreateAlertRule/v2

This API is used to create an alert rule.

Go debug

Querying an Alert Rule

hcloud SecMaster ShowAlertRule/v2

This API is used to query an alert rule.

Go debug

Updating an Alert Rule

hcloud SecMaster UpdateAlertRule/v2

This API is used to update an alert rule.

Go debug

Deleting an Alert Rule

hcloud SecMaster DeleteAlertRule/v2

This API is used to delete an alert rule.

Go debug

Enabling an Alert Rule

hcloud SecMaster EnableAlertRule/v2

This API is used to enable an alert rule.

Go debug

Disabling an Alert Rule

hcloud SecMaster DisableAlertRule/v2

This API is used to disable an alert rule.

Go debug

Querying Alert Rule Overview

hcloud SecMaster ListAlertRuleMetrics/v2

This API is used to query alert rule overview.

Go debug

Directory Management

API Name

Command

Description

Operation

Querying the Directory Group

hcloud SecMaster ListDirectories/v2

This API is used to query the directory group.

Go debug

Pipeline Management

API Name

Command

Description

Operation

Updating the Pipeline Structure

hcloud SecMaster UpdatePipeSchema/v2

This API is used to update the pipeline structure.

Go debug

Querying Pipeline Details

hcloud SecMaster ShowPipe/v2

This API is used to query pipeline details.

Go debug

Updating a Pipeline

hcloud SecMaster UpdatePipe/v2

This API is used to update a pipeline.

Go debug

Deleting a Pipeline

hcloud SecMaster DeletePipe/v2

This API is used to delete a pipeline.

Go debug

Querying the Pipeline List

hcloud SecMaster ListPipes/v2

This API is used to query the pipeline list.

Go debug

Creating a Pipeline

hcloud SecMaster CreatePipe/v2

This API is used to create a pipeline.

Go debug

Cloud Service Access

API Name

Command

Description

Operation

Obtaining Cloud Service Log Collection Configuration

hcloud SecMaster ListCollectConfig/v2

This API is used to obtain cloud service log collection configuration.

Go debug

Saving Cloud Service Log Collection Configuration

hcloud SecMaster CreateCollectConfig/v2

This API is used to save cloud service collection configurations.

Go debug

Analysis Script Management

API Name

Command

Description

Operation

Querying the List of Analysis Scripts

hcloud SecMaster ListAnalysisScripts/v2

This API is used to query the list of analysis scripts.

Go debug

Creating an Analysis Script

hcloud SecMaster CreateAnalysisScript/v2

This API is used to create an analysis script.

Go debug

Viewing an Analysis Script

hcloud SecMaster ShowAnalysisScript/v2

This API is used to view an analysis script.

Go debug

Updating an Analysis Script

hcloud SecMaster UpdateAnalysisScript/v2

This API is used to update an analysis script.

Go debug

Deleting an Analysis Script

hcloud SecMaster DeleteAnalysisScript/v2

This API is used to delete an analysis script.

Go debug

Retrieval Script Management

API Name

Command

Description

Operation

Querying the Retrieval Script List

hcloud SecMaster ListRetrieveScripts/v2

This API is used to query the list of retrieval scripts.

Go debug

Creating a Retrieval Script

hcloud SecMaster CreateRetrieveScript/v2

This API is used to create a retrieval script.

Go debug

Querying a Retrieval Script

hcloud SecMaster ShowRetrieveScript/v2

This API is used to query a retrieval script.

Go debug

Updating a Retrieval Script

hcloud SecMaster UpdateRetrieveScript/v2

This API is used to update retrieval script.

Go debug

Deleting a Retrieval Script

hcloud SecMaster DeleteRetrieveScript/v2

This API is used to delete a retrieval script.

Go debug

Code Snippet Management

API Name

Command

Description

Operation

Querying Code Snippets

hcloud SecMaster ListCodeSegments/v2

This API is used to query code snippets.

Go debug

Creating Code Snippets

hcloud SecMaster CreateCodeSegment/v2

This API is used to create code snippets.

Go debug

View Code Snippets

hcloud SecMaster ShowCodeSegment/v2

This API is used to view code snippets.

Go debug

Updating a Code Snippet

hcloud SecMaster UpdateCodeSegment/v2

This API is used to update a code snippet.

Go debug

Deleting a Code Snippet

hcloud SecMaster DeleteCodeSegment/v2

This API is used to delete a code snippet.

Go debug

Subscription Management

API Name

Command

Description

Operation

Querying Resource Subscription Information

hcloud SecMaster ShowSubscriptionResources/v2

This API is used to query resource subscription information.

Go debug

Table Management

API Name

Command

Description

Operation

Querying the Table List

hcloud SecMaster ListTables/v2

This API is used to query the table list.

Go debug

Creating a Table

hcloud SecMaster CreateTable/v2

This API is used to create a table.

Go debug

Querying Table Details

hcloud SecMaster ShowTable/v2

This API is used to query table details.

Go debug

Modifying Table Details

hcloud SecMaster UpdateTable/v2

This API is used to modify table details.

Go debug

Deleting a Table

hcloud SecMaster DeleteTable/v2

This API is used to delete a table.

Go debug

Modifying the Table Structure

hcloud SecMaster UpdateTableSchema/v2

This API is used to modify the table structure.

Go debug

Upgrading a Version

API Name

Command

Description

Operation

Querying the Current Available Version

hcloud SecMaster ShowVersion/v2

This API is used to query the current available version.

Go debug

Data Processing Job Management

API Name

Command

Description

Operation

Querying the Data Processing Job List

hcloud SecMaster ListDataTransformations/v2

This API is used to query the list of data processing jobs.

Go debug

Creating a Data Processing job.

hcloud SecMaster CreateDataTransformation/v2

This API is used to create a data processing job.

Go debug

Viewing a Data Processing Job

hcloud SecMaster ShowDataTransformation/v2

This API is used to view a data processing job.

Go debug

Updating a Data Processing Job

hcloud SecMaster UpdateDataTransformation/v2

This API is used to update a data processing job.

Go debug

Deleting a Data Processing Job

hcloud SecMaster DeleteDataTransformation/v2

This API is used to delete a data processing job.

Go debug

Enabling a Data Processing Job

hcloud SecMaster EnableDataTransformation/v2

This API is used to enable a data processing job.

Go debug

Disabling a Data Processing Job

hcloud SecMaster DisableDataTransformation/v2

This API is used to disable a data processing job.

Go debug

Querying Data Processing Overview

hcloud SecMaster ListDataTransformationMetrics/v2

This API is used to query data processing overview.

Go debug

Data Statistics

API Name

Command

Description

Operation

Obtaining Monitoring Statistics

hcloud SecMaster ShowMonitorStats/v2

This API is used to obtain monitoring statistics.

Go debug

Baseline Inspection

API Name

Command

Description

Operation

Querying the List of Baseline Inspection Results

hcloud SecMaster SearchBaseline/v2

This API is used to query the list of baseline inspection results.

Go debug

Querying the Check Item List

hcloud SecMaster SearchCheckitems/v2

This API is used to query the check item list.

Go debug

Adding a Custom Check Item

hcloud SecMaster CreateCustomizedCheckitem/v2

This API is used to add a custom check item.

Go debug

Deleting a Custom Check Item

hcloud SecMaster DeleteCustomizedCheckitems/v2

This API is used to delete a custom check item.

Go debug

Querying Check Item Details

hcloud SecMaster ShowCheckitemDetail/v2

This API is used to query check item details.

Go debug

Updating a Check Item

hcloud SecMaster UpdateCheckitem/v2

This API is used to update a check item.

Go debug

Querying the Compliance Pack List

hcloud SecMaster SearchCompliancePackages/v2

This API is used to query the compliance pack list.

Go debug

Adding a Custom Compliance Pack

hcloud SecMaster CreateCustomizedCompliancePackage/v2

This API is used to add a custom compliance pack.

Go debug

Deleting a Custom Compliance Pack

hcloud SecMaster DeleteCustomizedCompliancePackages/v2

This API is used to delete a custom compliance pack.

Go debug

Querying Compliance Pack Details

hcloud SecMaster ShowCompliancePackageDetail/v2

This API is used to query compliance pack details.

Go debug

Updating a Compliance Pack

hcloud SecMaster UpdateCompliancePackage/v2

This API is used to update a compliance pack.

Go debug

Layouts

API Name

Command

Description

Operation

Querying the Layout Field List

hcloud SecMaster ListLayoutFieldAll/v2

This API is used to query the layout field list.

Go debug

Creating a Layout Field

hcloud SecMaster CreateLayoutField/v2

This API is used to create a layout field.

Go debug

Batch Deleting Layout Fields

hcloud SecMaster DeleteLayoutField/v2

This API is used to delete layout fields.

Go debug

Querying Layout Field Details

hcloud SecMaster ShowLayoutFieldInfo/v2

This API is used to query the layout field details.

Go debug

Updating a Layout Field

hcloud SecMaster UpdateLayoutField/v2

This API is used to update a layout field.

Go debug