bucket getacl

Definition

Lists all ACLs for a given bucket.

Usage

$ ozone sh bucket getacl [-hV] [--source] [-s=<store>] <value>
Arguments
Parameter Description

value

A bucket URI. It can be a full URI (starts with o3://, e.g. o3://hostname:9862/vol1/bucket1/) or a short URI (starts with a volume name, e.g. vol1/bucket1). Any missing information is obtained from the configuration files

store

Store type: OZONE or S3

--source

Specifies wether to display the ACL of a link bucket (--source=false) or a source bucket (--source=true)

-h, --help

Prints out a help manual for this command

-V, --version

Prints out version information and exits

Examples

Listing all ACLs for a source bucket:

$ ozone sh bucket getacl --source=true vol1/bucket2

The output depends on the present ACLs, but should be similar to this:

[ {
  "type" : "USER",
  "name" : "s_tikhomirov_krb1@AD.RANGER-TEST",
  "aclScope" : "ACCESS",
  "aclList" : [ "ALL" ]
}, {
  "type" : "USER",
  "name" : "sergei",
  "aclScope" : "ACCESS",
  "aclList" : [ "LIST", "ALL" ]
} ]
Found a mistake? Seleсt text and press Ctrl+Enter to report it