Google Cloud Storage: bulk edit ACLs -
we in process of moving our servers google cloud compute engine , starting cloud storage cdn option. uploaded 1,000 files through developer console problem object permissions users set @ none. can't find way edit permissions give users reader access. missing something?
you can use gsutil acl ch command follows:
gsutil -m acl ch -r -g all:r gs://bucket1 gs://bucket2/object ... where:
-msets multi-threaded mode, faster large number of objects-rrecursively processes bucket , of contents-g all:rgrants users read-only access
see acl documentation more details.
you can use google cloud shell console via web browser if need run single command via gsutil, comes preinstalled in console vm.
Comments
Post a Comment