gsutil acl ch

From wikieduonline
Revision as of 18:37, 2 August 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

gsutil acl ch 

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:

Grant the group OWNER access to all jpg files in example-bucket:

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:

Ch Roles

  • R: READ
  • W: WRITE
  • O: OWNER

Ch Options

  • -d
  • -f
  • -g
  • -p
  • -R, -r
  • -u

See also

Advertising: