How do you make many files public in Google Cloud Storage?

前端 未结 6 521
独厮守ぢ
独厮守ぢ 2020-12-12 14:31

I have 1000 files in Google Cloud Storage to make public, or in general a directory hierarchy.

In the Web UI, I can only seem to make one at a time public.

I

6条回答
  •  醉梦人生
    2020-12-12 15:32

    You can make all objects in a bucket public. Here's the link.

    1. Open the Cloud Storage browser in the Google Cloud Platform Console.
    2. In the list of buckets, click on the name of the bucket that you want to make public.
    3. Select the Permissions tab near the top of the page.
    4. Click the Add members button.
      The Add members dialog box appears.
    5. In the Members field, enter allUsers.
    6. In the Roles drop down, select the Storage sub-menu, and click the Storage Object Viewer option.
    7. Click Add.

    Once shared publicly, a link icon appears for each object in the public access >column. You can click on this icon to get the URL for the object.

提交回复
热议问题