acl
Access Control List management

Usage

neuro acl [OPTIONS] COMMAND [ARGS]...
Access Control List management.
Commands:
Usage
Description
add-role
Add new role
grant
Shares resource with another user
List roles
ls
List shared resources
Remove existing role
revoke
Revoke user access from another user

add-role

Add new role

Usage

neuro acl add-role [OPTIONS] ROLE_NAME
Add new role.

Examples

$ neuro acl add-role mycompany/subdivision

Options

Name
Description
--help
Show this message and exit.

grant

Shares resource with another user

Usage

neuro acl grant [OPTIONS] URI USER {read|write|manage}
Shares resource with another user.
URI shared resource.
USER username to share resource with.
PERMISSION sharing access right: read, write, or manage.

Examples

$ neuro acl grant storage:///sample_data/ alice manage
$ neuro acl grant image:resnet50 bob read
$ neuro acl grant job:///my_job_id alice write

Options

Name
Description
--help
Show this message and exit.

list-roles

List roles

Usage

neuro acl list-roles [OPTIONS]
List roles.

Examples

$ neuro acl list-roles
$ neuro acl list-roles username/projects

Options

Name
Description
--help
Show this message and exit.
-u TEXT
Fetch roles of specified user or role.

ls

List shared resources

Usage

neuro acl ls [OPTIONS] [URI]
List shared resources.
The command displays a list of resources shared BY current user (default).
To display a list of resources shared WITH current user apply --shared option.

Examples

$ neuro acl list
$ neuro acl list storage://
$ neuro acl list --shared
$ neuro acl list --shared image://

Options

Name
Description
--help
Show this message and exit.
--full-uri
Output full URI.
--shared
Output the resources shared by the user.
-u TEXT
Use specified user or role.

remove-role

Remove existing role

Usage

neuro acl remove-role [OPTIONS] ROLE_NAME
Remove existing role.

Examples

$ neuro acl remove-role mycompany/subdivision

Options

Name
Description
--help
Show this message and exit.

revoke

Revoke user access from another user

Usage

neuro acl revoke [OPTIONS] URI USER
Revoke user access from another user.
URI previously shared resource to revoke.
USER to revoke URI resource from.

Examples

$ neuro acl revoke storage:///sample_data/ alice
$ neuro acl revoke image:resnet50 bob
$ neuro acl revoke job:///my_job_id alice

Options

Name
Description
--help
Show this message and exit.