table cf column datamask get
Retrieves the data mask used by one or more JSON table columns.
Syntax
- CLI
-
maprcli table cf column datamask get -path <table-path> -cfname <column family name> [ -name <column-name>]
- REST
-
http[s]://<host>:<port>/rest/table/cf/column/datamask/get?<parameters>
Parameters
Parameter |
Description |
---|---|
path |
The path to the HPE Ezmeral Data Fabric Database table.
|
cfname | The name of the column family of the JSON table field from which the data mask will be retrieved. |
name | The JSON table field. This parameter is optional. If omitted, the query returns all columns for the specified column family that have associated dynamic data masks. |
Example
maprcli table cf column datamask get -path /table1 -cfname default -json
{
"timestamp":1612303576139,
"timeofday":"2021-02-02 02:06:16.139 GMT-0800 PM",
"status":"OK",
"total":1,
"data":[
{
"name":"Creditcard",
"datamask":"mrddm_last4"
}
]
}
- REST
-
curl -k -X POST 'https://r1n1.sj.us:8443/rest/table/cf/column/datamask/get?path=/table1 &cfname=default'-u mapr:mapr