exo storage setacl

Description

This command sets bucket/objects ACL. It can be used in 2 (mutually exclusive) forms:

* With a "canned" ACL:

    exo storage setacl sos://my-bucket public-read

* With explicit Access Control Policy (ACP) grantees:

    exo storage setacl sos://my-bucket \
        --full-control alice@example.net \
        --read bob@example.net

Supported canned ACLs:

* For buckets: private, public-read, public-read-write, authenticated-read
* For objects: private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, bucket-owner-full-control

In ACP mode, it is possible to use the following special values to reference pre-defined groups:

* ALL_USERS (as in "public-read" canned ACL)
* AUTHENTICATED_USERS (as in "authenticated-read" canned ACL)

For more information on ACL, please refer to the Exoscale Storage documentation: https://community.exoscale.com/documentation/storage/acl/

If you want to target objects under a “directory” prefix, suffix the path argument with “/”:

exo storage setacl sos://my-bucket/ --full-control alice@example.net
exo storage setacl -r sos://my-bucket/public/ public-read

Supported output template annotations:

* When showing a bucket: .Name, .Zone, .ACL, .CORS, .ObjectOwnership
* When showing an object: .Path, .Bucket, .LastModified, .Size, .ACL, .Metadata, .Headers, .URL
exo storage setacl sos://BUCKET/[OBJECT|PREFIX/] [CANNED-ACL] [flags]

Options

OptionDescription
--full-controlACP Full Control grantee
--help, -hhelp for setacl
--readACL Read grantee
--read-acpACP Read ACP grantee
--recursive, -rset ACL recursively (with object prefix only)
--writeACP Write grantee
--write-acpACP Write ACP grantee

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • storage - Object Storage management