Difference between revisions of "Gsutil acl get"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
  [[gsutil acl]] get gs://your-bucket/
 
  [[gsutil acl]] get gs://your-bucket/
 
  [[AccessDeniedException]]: [[403 Access denied]].
 
  [[AccessDeniedException]]: [[403 Access denied]].
 +
  
 
  gsutil acl get
 
  gsutil acl get
Line 17: Line 18:
 
     -p (viewers|editors|owners)-<project number>:<permission>
 
     -p (viewers|editors|owners)-<project number>:<permission>
 
     -d <id>|<email>|<domain>|All|AllAuth|(viewers|editors|owners)-<project number>
 
     -d <id>|<email>|<domain>|All|AllAuth|(viewers|editors|owners)-<project number>
+
 
 +
==Get==
 +
The "acl get" command gets the ACL text for a bucket or object, which you can save and edit for the acl set command.
 
   
 
   
 
   
 
   

Revision as of 10:17, 1 August 2022

gsutil acl get gs://your-bucket/
AccessDeniedException: 403 Access denied.


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>

Get

The "acl get" command gets the ACL text for a bucket or object, which you can save and edit for the acl set command.


For additional help run:
  gsutil help acl


See also

Advertising: