table cf column securitypolicy set

Replaces the existing list of security policies associated with a field in a HPE Ezmeral Data Fabric Database JSON table with one or more new security policies.

Permissions Required

To run this command, your user ID must have the following permissions:

  • adminaccessperm on the table
NOTE
The mapr user is not treated as a superuser. HPE Ezmeral Data Fabric Database does not allow the mapr user to run this command unless that user is given the relevant permission or permissions with access-control expressions.

Syntax

CLI

maprcli table cf column securitypolicy set
  -path <path>
  -cfname <column family name>
  -column <JSON table field>
  -securitypolicy <comma-delimited list of policies> 
REST
http[s]://<host>:<port>/rest/table/cf/column/securitypolicy/set?path=<path>&cfname=<column-family-name>&column=<JSON-table-field>&securitypolicy=<policies>

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 for which the security policies will be replaced.
column The JSON table field

securitypolicy

The list of security policy tags to be replaced in the JSON table field.

Example

Replaces the security policy for the sales field in the default column family of a Data Fabric table named table1 with a new security policy named newpolicy:

CLI

maprcli table securitypolicy set
  -path "/table1"
  -cfname "default"
  -column "sales"
  -securitypolicy "newpolicy"

REST

http[s]://<host>:<port>/rest/table/securitypolicy/set?path=/table1&cfname=default&column=sales&securitypolicy=newpolicy