Adds a masking rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:AddDesensitizationRule |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleName |
string |
Yes |
The name of the rule. |
Masking algorithm test |
| RuleType |
string |
Yes |
The masking algorithm. Valid values:
Valid values:
|
HASH |
| RuleDescription |
string |
No |
The description of the rule. |
Hash algorithm |
| FunctionType |
string |
Yes |
The type of the masking algorithm. Valid values:
Valid values:
|
MD5 |
| FunctionParams |
array<object> |
No |
The parameters of the algorithm. |
|
|
object |
No |
The name of the parameter. |
||
|
string |
No |
The value of the parameter. |
{paramName: salt, paramValue: 1} |
|
| Tid |
integer |
No |
The tenant ID. Note
To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see the View information about the current tenant section of the "Manage DMS tenants" topic. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
The error code that is returned. |
UnknownError |
| ErrorMessage |
string |
The error message that is returned. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| RuleId |
integer |
The ID generated for the data masking rule. |
35*** |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"RuleId": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.