Queries the data masking rules of a PolarDB cluster or the information about a specified masking rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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 the clusters that belong to your Alibaba Cloud account, such as cluster IDs.
| pc-***************** |
RuleNameList | string | No | The name of the masking rule. | testrule |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "2F83D131-1C18-4599-889D-729A9D******",
"Message": "Successful",
"Success": true,
"Data": {
"RuleList": [
"\"{\\\"testrule\\\":{\\\"auto\\\":{\\\"databases\\\":[],\\\"tables\\\":[\\\"t1\\\"],\\\"columns\\\":[\\\"c1\\\"]},\\\"applies_to\\\":[],\\\"description\\\":\\\"This rule will be applied to the columns c1 in table t1\\\",\\\"enabled\\\":\\\"true\\\"}}\""
],
"RuleVersion": "v1"
},
"DBClusterId": "pc-bp1s826a1up******"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Abs.InvalidAccount.NotFound | account is not found. | The account does not exist. |
404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-02 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-09-12 | The Error code has changed | View Change Details |