v1
latestOpenAPI 3.0.02026-08-064311,0881.3 MBdataMaskingManagement
Create a new data masking rule.
Create a new data masking rule. The rule will be applied to search results at query time, replacing matches of the regex pattern with the specified mask string. Note: Changes to data masking rules may take up to 30 seconds to take effect.
post/v1/dataMaskingRules
Request body
Example request
{
"description": "Masks email addresses in application logs",
"regexPattern": "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}\\b",
"maskString": "EMAIL_REDACTED",
"name": "Email Masking"
}Response
The data masking rule has been created.
Example response
{
"description": "Masks email addresses in application logs",
"regexPattern": "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}\\b",
"maskString": "EMAIL_REDACTED",
"name": "Email Masking",
"createdAt": "2018-10-16T09:10:00Z",
"createdBy": "0000000006743FDD",
"modifiedAt": "2018-10-16T09:10:00Z",
"modifiedBy": "0000000006743FE8",
"id": "00000000FF42A0C3"
}