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. | |
| 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. | |
| 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. | |
| 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. |
Data Watermarking
Dynamic Data Masking
| API Name | Command | Description | Operation |
|---|---|---|---|
| Masking Sensitive Data | hcloud DSC BatchAddDataMask | This API is used to mask sensitive data. |
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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. |
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. | |
| Querying the Result of an Identification Task | hcloud DSC ShowScanJobResults | This API is used to query the result of a specified identification task. | |
| 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. | |
| 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. | |
| Modifying a Sensitive Data Scanning Rule | hcloud DSC ChangeRule | This API is used to modify a sensitive data scanning rule. | |
| Deleting a Sensitive Data Scanning Rule | hcloud DSC DeleteRule | This API is used to delete a sensitive data scanning rule. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| Deleting a Sensitive Data Scanning Task | hcloud DSC DeleteScanJob | Deleting a Sensitive Data Scanning Task |
API Call Records
| API Name | Command | Description | Operation |
|---|---|---|---|
| Querying OpenAPI Calls | hcloud DSC ShowOpenApiCalledRecords | This API is used to query OpenAPI calling records. |
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. | |
| 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. |
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. | |
| 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). |
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. | |
| Starting or Stopping a Data Masking Task | hcloud DSC ChangeDbTemplateOperation | This API is used to start or stop a data masking task. |
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. | |
| Querying the Data Asset Scanning Authorization | hcloud DSC ListBuckets | This API is used to query the data asset scanning authorization. | |
| Adding a Data Asset Scanning Authorization | hcloud DSC AddBuckets | This API is used to add a data asset scanning authorization. | |
| Deleting a Data Asset Scanning Authorization | hcloud DSC DeleteBucket | This API is used to delete a data asset scanning authorization. |
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