You can call the ExecDatamask operation to dynamically mask data.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:ExecDatamask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
integer |
Yes |
The ID of the data masking template. A template ID is generated after you create a template in the Data Security Center console. You can find the Template ID on the Data Masking > Masking Configuration > Masking Template page.
|
1 |
| Data |
string |
Yes |
The data that you want to mask. The data must be a string in JSON format and include the following fields:
|
{"dataHeaderList":["name","age"],"dataList":[["lily",18],["lucy",17]],"ruleList":[1002,null]} |
| FeatureType |
integer |
No |
This parameter is deprecated. |
2 |
| Lang |
string |
No |
The language of the request and response. Default value: zh_cn. Valid values:
|
zh_cn |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
string |
The data after it is masked. The data is a string in JSON format and includes the following fields:
|
{"dataHeaderList":["name","age"],"dataList":[["l***",18],["l***",17]],"ruleList":[1002,null]} |
| RequestId |
string |
The ID of the request. Alibaba Cloud generates a unique ID for each request. You can use this ID to troubleshoot issues. |
813BA9FA-D062-42C4-8CD5-11A7640B96E6 |
Examples
Success response
JSON format
{
"Data": "{\"dataHeaderList\":[\"name\",\"age\"],\"dataList\":[[\"l***\",18],[\"l***\",17]],\"ruleList\":[1002,null]}",
"RequestId": "813BA9FA-D062-42C4-8CD5-11A7640B96E6"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.