Deletes one or more specified masking rules.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteMaskingRules

The operation that you want to perform. Set the value to DeleteMaskingRules.

RuleNameList String Yes testrule

The name of the masking rule that you want to delete. You can specify multiple masking rules at a time. Separate the masking rules with commas (,).

Note You can call the DescribeMaskingRules operation to query details of all the masking rules for a specified cluster, such as the names of the masking rules.
DBClusterId String Yes pc-*****************

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.

Response parameters

Parameter Type Example Description
RequestId String 2BCEE25B-797C-426B-BA7B-D28CCF******

The ID of the request.

Message String Successful

The message returned for the request.

Note If the request is successful, Successful is returned. If the request fails, an exception that contains an error code is returned.
Success Boolean true

The result of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/?Action=DeleteMaskingRules
&RuleNameList=testrule
&DBClusterId=pc-*****************
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeleteMaskingRulesResponse>
<Message>Successful</Message>
<RequestId>2BCEE25B-797C-426B-BA7B-D28CCF******</RequestId>
<Success>true</Success>
</DeleteMaskingRulesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Message" : "Successful",
  "RequestId" : "2BCEE25B-797C-426B-BA7B-D28CCF******",
  "Success" : true
}

Error codes

For a list of error codes, visit the API Error Center.