Updated on 2024-07-29 GMT+08:00

KEYWORD

Replace the keyword specified in a character string.

Request Parameters

Table 1 Parameter description

Parameter

Mandatory

Type

Description

algorithm

Yes

String

Algorithm type, for example, KEYWORD

parameters

Yes

For details, see Table 2.

Parameters for configuring a data masking algorithm

Table 2 Parameters for configuring a data masking algorithm

Parameter

Mandatory

Type

Description

key

Yes

String

Specified keyword

target

Yes

String

Value replaced with

Example Request

{
    "mask_strategies": [
        {
            "name": "col1",
            "algorithm": "KEYWORD",
            "parameters": {
"key": "Keyword",
"target": "Target character string"
            }
        }
    ],
    "data": [
        {
"col1": "Keyword"
        }
    ]
}