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.

  • For a path on the local cluster, start the path at the volume mount point. For example, for a table named test under a volume with a mount point at /volume1, specify the following path: /volume1/test
  • For a path on a remote cluster, you must also specify the cluster name in the path. For example, for a table named customer under volume1 in the sanfrancisco cluster, specify the following path:/mapr/sanfrancisco/volume1/customer
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