All Documents
Data Security CenterData Security Center
- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Service Provisioning
- Assets
- Overview
- Sensitive Data Identification
- Data Usage Audit
- Data Masking
- Data Watermarking
- Alarm Notifications
- Permissions Management
- Key DSC Operations
- Change History
- Best Practices
- API Reference
- SDK Reference
-
FAQs
- Product Consulting
- Regions and AZs
- Adding Data Assets
-
Sensitive Data Identification and Masking
- What Services Can Use DSC to Scan for Sensitive Data?
- How Long Does It Take for DSC to Identify and Mask Sensitive Data?
- Which Types of Sensitive Data Can Be Identified by DSC?
- Does Data Masking Affect My Raw Data?
- Does DSC Have Specific Requirements on the Character Set for Which Sensitive Data Is to Be Identified and Masked?
- How Do I Add Multiple Identification Rule Groups?
- Data Watermarking
- Data Usage Audit
- Billing, Renewal, and Repurchase After Unsubscription
- Change History
- Videos
Extracting a Data Watermark
Function
This API is used to extract a data watermark.
URI
POST /v1/{project_id}/sdg/database/watermark/extract
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token, which can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
watermark_key |
Yes |
String |
Watermark key |
columns |
Yes |
Array of Columns objects |
Field type list, which cannot exceed 100. |
data |
Yes |
Array of Map<String,Object> objects |
Watermark data records, which cannot exceed 30,000. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
watermarks |
Array of strings |
List of watermarks extracted. The uploaded data may include different watermarks. All watermarks extracted are returned, and the number of watermarks cannot exceed 100. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error Code |
error_msg |
String |
Error Message |
Example Requests
POST https://{endpoint}/v1/{project_id}/sdg/database/watermark/extract { "watermark_key" : "key", "columns" : { "name" : "col", "type" : "INTEGER", "primary_key" : false }, "data" : { "col" : 0.1 } }
Example Responses
Status code: 200
Request successful.
{ "watermarks" : [ "watermark" ] }
Status code: 400
Parameter error.
{ "error_code" : "DSC.00000004", "error_msg" : "Invalid parameter" }
Status Codes
Status Code |
Description |
---|---|
200 |
Request successful. |
400 |
Parameter error. |
Error Codes
See Error Codes.