Set Access Control Expressions (ACEs) for a specified column.

Syntax

CLI

maprcli table cf colperm set
    -path <path>
    -cfname <column-family name>
    -name <column name>
    [ -appendperm Access Control Expression for column appends ] 
    [ -readperm Access Control Expression for column reads ]
    [ -writeperm Access Control Expression for column writes ]

REST

http[s]://<host>:<port>/rest/table/cf/colperm/set?path=<path>&cfname=<name>&name=<name>&readperm=<ACE>& writeperm=<ACE>&appendperm=<ACE>

Parameters

Parameter

Description

path

The path to the table.

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

cfname

The name of the column family in which the column is located.

nameThe name of the column for which you want to set the ACEs.
appendperm

The Access Control Expression for column appends. Use single quotation marks around the ACE. 

Column appends require permission both at the column-family level and at the column level.

readperm

The Access Control Expression for column reads. Use single quotation marks around the ACE. 

Column reads require permission both at the column-family level and at the column level.

writeperm

The Access Control Expression for column writes (puts and deletes). Use single quotation marks around the ACE. 

Column writes require permission both at the column-family level and at the column level.

 

Examples

Setting ACEs for a column

CLI

maprcli table cf colperm set -path /mytable -cfname cf1 -name col1 -readperm 'g:group1'

REST

https://r1n1.sj.us:8443/rest/table/cf/set?path=%2Fvolume1%2Fthetable&cfname=mycf&name=col1&readperm='g:group1'