Difference between revisions of "Gsutil acl ch"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
[[gsutil acl]] ch | [[gsutil acl]] ch | ||
− | == | + | Options: |
+ | * <code>-d</code> | ||
+ | * <code>-f</code> | ||
+ | * <code>-g</code> | ||
+ | * <code>-p</code> | ||
+ | * <code>-R, -r</code> Performs "acl set" request recursively, to all objects under the specified URL. | ||
+ | * <code>-u </code> | ||
+ | |||
+ | |||
+ | == Examples == | ||
* <code>gsutil acl ch -u AllUsers:R gs://example-bucket/example-object</code> | * <code>gsutil acl ch -u AllUsers:R gs://example-bucket/example-object</code> | ||
Revision as of 08:47, 3 August 2022
gsutil acl ch
Options:
-d
-f
-g
-p
-R, -r
Performs "acl set" request recursively, to all objects under the specified URL.-u
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
R: READ
W: WRITE
O: OWNER
See also
Advertising: