Updated on 2026-09-01 GMT+08:00

CLI Command Reference

Document Watermarking

API Name

Command

Description

Operation

Injecting Watermarks into Documents

hcloud DSC CreateDocWatermark

This API is used to inject invisible text watermarks, visible text watermarks, or visible image watermarks into Word (.docx), PPT (.pptx), Excel (.xlsx), and PDF (.pdf) files. You need to pass file and watermark information in formData format to this API, DSC returns the binary stream of the watermarked file.

Go debug

Extracting Invisible Watermarks

hcloud DSC ShowDocWatermark

This API is used to extract invisible watermarks from Word (.docx), PPT (.pptx), Excel (.xlsx), and PDF (.pdf) files. You need to pass watermarked formData files to this API, DSC returns extracted text watermarks in JSON format.

Go debug

Injecting Watermarks into Documents (Document Addresses)

hcloud DSC CreateDocWatermarkByAddress

This API is used to inject visible text watermarks, invisible text watermarks, or visible image watermarks into Word (.docx), PPT (.pptx), Excel (.xlsx), and PDF (.pdf)* documents. You need to pass a document address (currently, only OBS is supported) and watermark information to this API. DSC returns the storage address of the watermarked document.

Go debug

Extracting Invisible Watermarks from Documents (Document Addresses)

hcloud DSC ShowDocWatermarkByAddress

This API is used to extract invisible text watermarks from Word (.docx), PPT (.pptx), Excel (.xlsx), and PDF (.pdf) documents. You need to pass the address of a watermarked document (only OBS path is supported) to this API. DSC returns the invisible text watermark extracted from the document in JSON format.

Go debug

Data Watermarking

API Name

Command

Description

Operation

Injecting a Data Watermark

hcloud DSC CreateDatabaseWaterMark

This API is used to dynamically inject a watermark into the JSON body.

Go debug

Extracting a Data Watermark

hcloud DSC ShowDatabaseWaterMark

This API is used to extract a data watermark.

Go debug

Dynamic Data Masking

API Name

Command

Description

Operation

Masking Sensitive Data

hcloud DSC BatchAddDataMask

This API is used to mask sensitive data.

Go debug

Image Watermarking

API Name

Command

Description

Operation

Injecting Invisible Watermarks into Images

hcloud DSC CreateImageWatermark

This API is used to inject text watermarks or image watermarks into an image. You need to pass an image in formData format to this API. DSC returns the binary stream of the watermarked image. Currently, the supported image formats include *.jpg, .jpeg, .jpe, .png, .bmp, .dib, .rle, .tiff, .tif, .ppm, .webp, .tga, .tpic, and .gif.

Go debug

Extracting Invisible Text Watermarks

hcloud DSC ShowImageWatermark

This API is used to extract text watermarks from images. You need to pass an image in formData format to this API. DSC returns the extracted invisible text watermarks in JSON format. Currently, the supported image formats include .jpg, .jpeg, .jpe, .png, .bmp, .dib, .rle, .tiff, .tif, .ppm, .webp, .tga, .tpic, and .gif.

Go debug

Extracting Invisible Watermarks from Images

hcloud DSC ShowImageWatermarkWithImage

This API is used to extract invisible image watermarks from images. You need to pass a watermarked image in formData format to this API. DSC returns the binary stream of the extracted invisible watermark. Currently, the supported image formats include .jpg, .jpeg, .jpe, .png, .bmp, .dib, .rle, .tiff, .tif, .ppm, .webp, .tga, .tpic, and .gif.

Go debug

Injecting Invisible Watermarks into Images (Image Addresses)

hcloud DSC CreateImageWatermarkByAddress

This API is used to inject invisible text watermarks or invisible image watermarks into an image whose storage address is specified (only a Huawei Cloud OBS path is supported). DSC returns the injected watermark in a specified storage location (an OBS path). The supported image formats include .jpg, .jpeg, .jpe, .png, .bmp, .dib, .rle, .tiff, .tif, .ppm, .webp, .tga, .tpic, and .gif.

Go debug

Extracting Dark Watermarks from Images (Image Addresses)

hcloud DSC ShowImageWatermarkByAddress

This API is used to extract invisible text watermarks from an image whose storage address is specified (only a Huawei Cloud OBS path is supported). The supported image formats include .jpg, .jpeg, .jpe, .png, .bmp, .dib, .rle, .tiff, .tif, .ppm, .webp, .tga, .tpic, and .gif.

Go debug

Extracting Invisible Image Watermarks from Images (Image Addresses)

hcloud DSC ShowImageWatermarkWithImageByAddress

This API is used to extract invisible image watermarks from images whose storage address is specified (only a Huawei Cloud OBS path is supported).DSC returns the watermark images in a specified storeage location (an OBS path). The supported image format is .jpg, .jpeg, .jpe, .png, .bmp, .dib, .rle, .tiff, .tif, .ppm, .webp, .tga, .tpic, and .gif.

Go debug

Sensitive Data Discovery

API Name

Command

Description

Operation

Querying the Identification Task List

hcloud DSC ShowScanJobs

This API is used to query the identification task list.

Go debug

Querying the Result of an Identification Task

hcloud DSC ShowScanJobResults

This API is used to query the result of a specified identification task.

Go debug

Viewing the Rule List

hcloud DSC ShowRules

This API is used to query the sensitive data scanning rule list. The total number of rules and the rule list are returned.

Go debug

Creating a Sensitive Data Scanning Rule

hcloud DSC AddRule

This API is used to create a sensitive data scanning rule using the parameters such as rule name, rule type, risk level, and minimum number of matching times.

Go debug

Modifying a Sensitive Data Scanning Rule

hcloud DSC ChangeRule

This API is used to modify a sensitive data scanning rule.

Go debug

Deleting a Sensitive Data Scanning Rule

hcloud DSC DeleteRule

This API is used to delete a sensitive data scanning rule.

Go debug

Querying Sensitive Data Scanning Rule Groups

hcloud DSC ListRuleGroups

This API is used to query the sensitive data scanning rule groups based on a specified project ID.

Go debug

Creating a Sensitive Data Scanning Rule Group

hcloud DSC AddRuleGroup

This API is used to create a sensitive data scanning rule group using the specified rule group name and rule list.

Go debug

Deleting a Sensitive Data Scanning Rule Group

hcloud DSC DeleteRuleGroup

This API is used to delete a sensitive data scanning rule group of a specified ID.

Go debug

Creating a Sensitive Data Scanning Task

hcloud DSC AddScanJob

This API is used to create a sensitive data scanning task with parameters such as task name, scanning mode, scanning period, scanning rule group, and scanning time.

Go debug

Deleting a Sensitive Data Scanning Task

hcloud DSC DeleteScanJob

Deleting a Sensitive Data Scanning Task

Go debug

API Call Records

API Name

Command

Description

Operation

Querying OpenAPI Calls

hcloud DSC ShowOpenApiCalledRecords

This API is used to query OpenAPI calling records.

Go debug

Resource Management

API Name

Command

Description

Operation

Instance Ordering

hcloud DSC CreateProductOrder

This API is used to place an order based on the billing mode and billing period.

Go debug

Querying Resource Provisioning Information

hcloud DSC ShowSpecification

This API is used to query resource provisioning information and query order details based on the project ID.

Go debug

Alarm Notifications

API Name

Command

Description

Operation

Querying an Alarm Notification Topic

hcloud DSC ShowTopics

This API is used to query alarm notification topics. The default topic, number of confirmed topics, and list are returned.

Go debug

Modifying an Alarm Notification Topic

hcloud DSC UpdateDefaultTopic

This API is used to modify general alarm notification settings, such as the associated project ID, notification topic, and notification status (0: notification disabled; 1: notification enabled).

Go debug

Static Data Masking

API Name

Command

Description

Operation

Querying the Data Masking Task Execution List

hcloud DSC ListDbMaskTask

This API is used to query the data masking task execution list.

Go debug

Starting or Stopping a Data Masking Task

hcloud DSC ChangeDbTemplateOperation

This API is used to start or stop a data masking task.

Go debug

Asset Management

API Name

Command

Description

Operation

Editing a Data Asset Name

hcloud DSC UpdateAssetName

This API is used to edit a data asset name.

Go debug

Querying the Data Asset Scanning Authorization

hcloud DSC ListBuckets

This API is used to query the data asset scanning authorization.

Go debug

Adding a Data Asset Scanning Authorization

hcloud DSC AddBuckets

This API is used to add a data asset scanning authorization.

Go debug

Deleting a Data Asset Scanning Authorization

hcloud DSC DeleteBucket

This API is used to delete a data asset scanning authorization.

Go debug