gsutil acl get

From wikieduonline
Revision as of 06:04, 3 August 2022 by Thomas (talk | contribs)
Jump to navigation Jump to search

gsutil acl get gs://your-bucket/
for BUCKET in $(gsutil ls); do echo $BUCKET; gsutil acl get $BUCKET; done
gsutil acl get gs://your-bucket/
[]


gsutil acl get gs://your-bucket/
BadRequestException: 400 Cannot get legacy ACL for a bucket that has uniform bucket-level access. Read more at  https://cloud.google.com/storage/docs/uniform-bucket-level-access


gsutil acl get
CommandException: The acl command requires at least 2 arguments. Usage:

 gsutil acl set [-f] [-r] [-a] <file-or-canned_acl_name> url...
 gsutil acl get url
 gsutil acl ch [-f] [-r] <grant>... url...

 where each <grant> is one of the following forms:

   -u <id>|<email>:<permission>
   -g <id>|<email>|<domain>|All|AllAuth:<permission>
   -p (viewers|editors|owners)-<project number>:<permission>
   -d <id>|<email>|<domain>|All|AllAuth|(viewers|editors|owners)-<project number>

Errors

Related

See also

Advertising: