clustergroup updates3user
Updates permissions for external S3 server.
As a cluster administrator, you can perform the following operations on an external S3 server that has been imported into Data Fabric.
- add access to users and/or groups
- revoke access from users and/or groups
- change the ownerNOTEWhen you change the owner, the new owner must be granted the
cs3
ACL. Thecs3
ACL will enable to new owner to connect the the external S3 server.
clustergroup updates3user
CLI command to perform the
aforementioned operations on an external S3 server that has been imported into Data Fabric.Syntax
- CLI
-
maprcli clustergroup updates3user - externalservername name of the external server - action addaccessors/removeaccessors/updateowner [- accessorusers comma separated list of accessor users] [- accessorgroups comma separated list of accessor groups] [- owner owner name]
Parameters
Parameter | Description |
---|---|
|
(Required) The name of the imported external S3 server on which you wish to grant or revoke user access or group access or change owner. |
|
(Required) Permissible values for this parameter are as follows:
|
accessorusers |
(Optional) Enter a comma-separated list of users that you
wish to provide access to or revoke access on the external S3
server. You could specify the accessorgroups when
the value of action parameter is
addaccessors or
removeaccessors . |
accessorgroups |
(Optional) Enter a comma-separated list of groups that you
wish to provide access to or revoke access on the external S3
server. You could specify the accessorgroups when
the value of action parameter is
addaccessors or
removeaccessors . |
owner |
(Optional) Enter the name of the new owner for the
imported external S3 server. Specify the owner when the value of
action parameter is
updateowner . |
Example
clustergroup updates3user
command runs successfully.
Change owner for external S3 server
Change the owner on 'ext1' external S3 server to 'johndoe'.
- CLI
-
maprcli clustergroup updates3user -externalservername ext1 -action updateowner -owner johndoe -json
- REST
-
curl -u <username> -X POST https://server.sj.us:8443/rest/clustergroup/updates3user?externalservername=ext1&action=updateowner&owner=johndoe
Grant access on external S3 server for user and group
Grant access on 'ext1' external S3 server to user, 'janedoe', and groups, 'sales' and 'qa'.
- CLI
-
maprcli clustergroup updates3user -externalservername ext1 -action addaccessors -accessorusers janedoe - accessorgroups sales,qa -json
- REST
-
curl -u <username> -X POST https://server.sj.us:8443/rest/clustergroup/updates3user?externalservername=ext1&action=addaccessors&accessorusers=janedoe&accessorgroups=sales,qa
Revoke access on external S3 server for group
Revoke access on 'ext2' external S3 server for groups, 'sales' and 'qa'.
- CLI
-
maprcli clustergroup updates3user -externalservername ext2 -action removeaccessors - accessorgroups sales,qa -json
- REST
-
curl -u <username> -X POST https://server.sj.us:8443/rest/clustergroup/updates3user?externalservername=ext2&action=removeaccessors&accessorgroups=sales,qa