Modifies the configuration of a data masking rule or creates a new one.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyMaskingRules |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the cluster. Note
You can call the DescribeDBClusters operation to query the details of all clusters that belong to your account. The details include the cluster IDs. |
pc-***************** |
| RuleName |
string |
No |
The name of the data masking rule. You can specify only one rule name at a time. Note
|
testrule |
| RuleConfig |
string |
No |
The configuration of the data masking rule that you want to modify, in a JSON string format. All parameter values are strings. Example:
Note
|
{"auto": {"databases": ["db1"], "tables": ["tb1"], "columns": ["c1,c2"] }, "description": "This rule will be applied to the columns c1 and c2 in table t1", "enabled": true, "applies_to": ["user"]} |
| RuleNameList |
string |
No |
A list of data masking rule names. You can specify one or more rule names, separated by commas (,). Note
You must specify either the |
testrule |
| Enable |
string |
No |
Specifies whether to enable the data masking rule. Valid values:
Note
This parameter takes effect only when you specify the |
true |
| RuleVersion |
string |
No |
The version of the data masking rule. Valid values:
|
v2 |
| InterfaceVersion |
string |
No |
The type of rule to modify. Valid values: v1: data masking rule.v2: encryption rule. |
v1 |
| MaskingAlgo |
string |
No |
||
| DefaultAlgo |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
99B355CE-526C-478B-B730-AD9D7C****** |
| Message |
string |
The message returned for the request. Note
If the request is successful, this parameter returns `Successful`. If the request fails, this parameter returns an error message that includes the error code. |
Message |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "99B355CE-526C-478B-B730-AD9D7C******",
"Message": "Message",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.