Siyao Meng created HDDS-5306:
--------------------------------
Summary: Ozone Shell getacl capable of printing ACL string the way
it is fed to setacl
Key: HDDS-5306
URL: https://issues.apache.org/jira/browse/HDDS-5306
Project: Apache Ozone
Issue Type: Improvement
Components: Ozone CLI
Reporter: Siyao Meng
getacl should be able to return the ACL string (e.g.
user:user1:rw,group:hadoop:a) the same way ACL is set for better usability.
This is useful when one wants to delete an ACL via CLI, or slightly change the
ACL with copy-pasting. Currently, getacl can only return a JSON array:
{code}
$ ozone sh bucket getacl vol1/bucket-src
[ {
"type" : "USER",
"name" : "testuser/[email protected]",
"aclScope" : "ACCESS",
"aclList" : [ "ALL" ]
}, {
"type" : "GROUP",
"name" : "hadoop",
"aclScope" : "ACCESS",
"aclList" : [ "ALL" ]
} ]
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]