All Products
Search
Document Center

Data Management:ListDesensitizationRule

Last Updated:Oct 21, 2024

Queries a list of masking rules.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page. The maximum value is 100.

20
RuleTypestringNo

The algorithm used for masking.

HASH
FuncTypestringNo

The type of the masking algorithm.

MD5
RuleNamestringNo

The name of the masking rule.

default desensitization rule test
RuleIdintegerNo

The ID of the masking rule.

1
TidlongNo

The ID of the tenant.

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 View information about the current tenant.
3***

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of entries returned. By default, this parameter is not returned.

1
RequestIdstring

The ID of the request.

E76DD2E7-EBAC-5724-B163-19AAC233F8F2
ErrorCodestring

The error code returned if the request failed.

UnknownError
ErrorMessagestring

The error message returned if the request failed.

UnknownError
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
DesensitizationRuleListarray<object>

The list of masking rules.

DesensitizationRuleobject
RuleNamestring

The name of the masking rule.

default desensitization rule test
RuleTypestring

The algorithm used for masking.

HASH
RuleDescstring

The description of the rule.

hash desensitization algorithm
FunctionTypestring

The algorithm type.

MD5
FuncParamsstring

The parameter.

{paramName: salt, paramValue: 1}
FuncSamplestring

The example.

[{paramName: testStr, paramValue: 1}]
LastModifierIdstring

The ID of the user who last modified the masking rule.

2
LastModifierNamestring

The name of the user who last modified the masking rule.

test user
ReferenceCountinteger

The number of times that the masking was used.

1
RuleIdinteger

The ID of the masking rule.

23

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "E76DD2E7-EBAC-5724-B163-19AAC233F8F2",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Success": true,
  "DesensitizationRuleList": [
    {
      "RuleName": "default desensitization rule test",
      "RuleType": "HASH",
      "RuleDesc": "hash desensitization algorithm",
      "FunctionType": "MD5",
      "FuncParams": "{paramName: salt, paramValue: 1}",
      "FuncSample": "[{paramName: testStr, paramValue: 1}]",
      "LastModifierId": "2",
      "LastModifierName": "test user",
      "ReferenceCount": 1,
      "RuleId": 23
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history