datamask list
Lists all available data masks.
Syntax
- CLI
-
Use the
maprcli security datamask list
command to list all data masks.maprcli security datamask list [ -cluster <cluster-name> ] [ -output terse | verbose ] [ -columns <comma-separated list of column names> ]
- REST
-
Request Type GET Request URL http[s]://<host>:<port>/rest/security/datamask/list?<parameters>
Parameters
Parameter | Description |
---|---|
cluster | The cluster on which to run the command. The default cluster is the local cluster. |
output | Specifies whether the output should be terse or verbose. Default:
verbose . |
columns | A comma-separated list of columns to return in the query. By default, all columns are displayed. Supported column names are as follows:
|
Example
maprcli security datamask list -json
{
"timestamp":1644285413233,
"timeofday":"2022-02-07 05:56:53.233 GMT-0800 PM",
"status":"OK",
"total":7,
"data":[
{
"id":1,
"name":"mrddm_redact",
"description":"Replaces all alpha chars with X and numeric chars with 0",
"applicability":"[Boolean, String, Byte, Short, Int, Long, Float, Double, Date, Time, Timestamp, Binary, Array]"
},
{
"id":2,
"name":"mrddm_last4",
"description":"Show only last 4 characters. Replaces all others with 'x'",
"applicability":"[String, Array]"
},
{
"id":3,
"name":"mrddm_first4",
"description":"Show only first 4 characters. Replaces all others with 'x'",
"applicability":"[String, Array]"
},
{
"id":4,
"name":"mrddm_first6last4",
"description":"Show only first 6 and last 4 chars. Replaces others with 'x'",
"applicability":"[String, Array]"
},
{
"id":5,
"name":"mrddm_email",
"description":"Shows first and last 2 chars of username and part of domain",
"applicability":"[String, Array]"
},
{
"id":6,
"name":"mrddm_hash",
"description":"Show the hash of the data",
"applicability":"[String, Array]"
},
{
"id":7,
"name":"mrddm_date",
"description":"Shows only the year portion of the date and will default everything else to Jan 1 and 00:00:00",
"applicability":"[Date, Timestamp, Array]"
}
]
}
curl -k -X POST \
'https://r1n1.sj.us:8443/rest/security/datamask/list' \
-u mapr:mapr