Difference between revisions of "Gsutil acl ch"
Jump to navigation
Jump to search
↑ https://cloud.google.com/storage/docs/gsutil/commands/acl
Line 32: | Line 32: | ||
*<code>W: WRITE</code> | *<code>W: WRITE</code> | ||
*<code>O: OWNER</code> | *<code>O: OWNER</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Ch Options === | === Ch Options === |
Revision as of 10:57, 1 August 2022
gsutil acl ch
Contents
Ch Examples
gsutil acl ch -u AllUsers:R gs://example-bucket/example-object
Grant anyone on the internet WRITE access to the bucket example-bucket:
gsutil acl ch -u [email protected]:WRITE gs://example-bucket
Grant the group OWNER access to all jpg files in example-bucket:
gsutil acl ch -g [email protected]:O gs://example-bucket/**.jpg
Remove access to the bucket example-bucket for the viewers of project number 12345:
gsutil acl ch -d viewers-12345 gs://example-bucket
Grant all users from the G Suite domain my-domain.org READ access to the bucket gcs.my-domain.org:
gsutil acl ch -g my-domain.org:R gs://gcs.my-domain.org
Remove any current access by [email protected] from the bucket example-bucket:
gsutil acl ch -d [email protected] gs://example-bucket
Ch Roles
You may specify the following roles with either their shorthand or their full name:
R: READ
W: WRITE
O: OWNER
Ch Options
-d
-f
-g
-p
-R, -r
-u
See also
gsutil acl [ get | set | ch ]
gsutil
[config | singurl | mb | iam | cp | ls | acl | defacl | ubla | du | cors | --help
],$HOME/.boto, Cloud Shell
Advertising: