Skip to content

dataMask ​

Command: dataMask
Category: System Tools
Status: Production Ready

Description ​

Apply masking rules for sensitive data protection

Syntax ​

bash
hana-cli dataMask [options]

Command Diagram ​

Aliases ​

  • mask
  • dataprivacy
  • anonymize
  • pii

Parameters ​

Options ​

OptionAliasTypeDefaultDescription
--schema-sstring-Schema containing target table
--table-tstring-Target table to mask
--rules-rstring-Inline masking rules definition
--rulesFile-rfstring-Path to masking rules file
--columns-cstring-Comma-separated columns to mask
--maskType-mtstringredactMasking strategy. Choices: redact, hash, shuffle, replace, truncate, pattern, random
--dryRun-drbooleantrueGenerate masking SQL without executing
--whereClause-wstring-Restrict rows to mask
--output-ostring-Output file for generated SQL
--profile-pstring-Connection profile

For a complete list of parameters and options, use:

bash
hana-cli dataMask --help

Examples ​

Basic Usage ​

bash
hana-cli dataMask --table CUSTOMERS --maskType hash --columns EMAIL

Apply hash masking to matching rows and columns in the target table.

See the Commands Reference for other commands in this category.

See Also ​