Skip to main content

Retrieve Masking Algorithm List

Use this API to list masking algorithms that can be applied to sensitive columns. The response helps you select the correct algorithmId before setting sensitive data recognition results through the OpenAPI.

Request URL: /openapi/v1/sensitiveData/algorithm/list

Request Method: GET

Request Parameters

ParameterTypeRequiredDescriptionExample
algorithmIdLongNoMasking algorithm ID.538
currentIntegerNoCurrent page number, starting from 1. Default value: 1.1
pageSizeIntegerNoPage size. Default value: 10.1

Request Example

For request headers, signatures, and GET query construction, see OpenAPI API Documentation.

{
"current": 1,
"pageSize": 1
}

Response Parameters

ParameterTypeDescription
successBooleanIndicates whether the API call is successful.
requestIdStringRequest ID.
dataArrayMasking algorithm detail list.
currentIntegerCurrent page number.
pageSizeIntegerPage size.
totalIntegerTotal number of records.

The fields of each masking algorithm detail are as follows:

ParameterTypeDescription
algorithmIdIntegerAlgorithm ID.
nameStringAlgorithm name.
descriptionStringAlgorithm description.

Successful Response Example

{
"success": true,
"requestId": "Jc4c7PKY-IOPHyYZnLOKm6PEdNQd8LIB",
"data": [
{
"algorithmId": 538,
"name": "Mask last 4 digits",
"description": "Mask last 4 digits"
}
],
"current": 1,
"pageSize": 1,
"total": 41
}

Result

A successful response returns a paginated list of masking algorithms. Use the returned algorithmId when you assign a masking rule to a sensitive column.