Free text redaction
See Free Text Redaction for more information about this algorithm framework.
Creating a free text redaction algorithm via API
Retrieve the frameworkIdfor the Free Text Redaction Algorithm Framework. This information can be retrieved using the following endpoint:
CODEalgorithm GET /algorithm/frameworks
The framework information should look similar to the following:
CODE{ "frameworkId": 8, "frameworkName": "Free Text Redaction", "frameworkType": "STRING", "plugin": { "pluginId": 7, "pluginName": "dlpx-core", "pluginAuthor": "Delphix Engineering", "pluginType": "EXTENDED_ALGORITHM" } }
Upload the Lookup File(if any) for the Free Text Redaction Algorithm Framework. It can be done using the following endpoint:
CODEfileUpload POST /file-uploads
The response with the reference UUID information should look similar to the following:
CODE{ "fileReferenceId": "delphix-file://upload/f_6426ea480db14c1ea9f83f7eb98f3c0e/lookupFile.txt" }
Create a Free Text Redaction Algorithm instance via the following endpoint:
CODEalgorithm POST /algorithms
Configure a new algorithm using the JSON formatted input similar to the following:
CODE{ "algorithmName": "Free Text Redaction for masking addresses and zip codes", "algorithmType": "COMPONENT", "frameworkId": 8, "algorithmExtension": { "isDenyList": true, "lookupFile": { "uri": "delphix-file://upload/f_6426ea480db14c1ea9f83f7eb98f3c0e/lookupFile.txt" }, "lookupFileRedactValue": "redact_value1", "regularExpressions": [ { "patternString": "a|A" }, { "patternString": "[0-9]{5}" } ], "regExRedactValue": "redact_value2" } }
Free text redaction algorithm extension
isDenyList (required)
Boolean Deny list redaction if true, allow list redaction if false.
lookupFile (optional)
String The reference UUID value returned from the endpoint for uploading the lookup file to the Masking Engine.
lookupFileRedactValue (optional)
String The value to use to redact items matching entries specified in the lookup file.
regExPatternList (optional)
array[patternString]
patternString(required)
String Java 8 style regular expression.
regExRedactValue (optional)
String The value to use to redact items matching regular expression patterns.