Access public data from cloud storage without any authentication using google account.

0 votes
I need to access public data from cloud storage without any authentication or using google account. How do I do this?
Nov 12 in GCP by anonymous
• 4,330 points
36 views

1 answer to this question.

0 votes

Accessing public data with gsutil or a Cloud Storage API link does not require authentication. These methods are suited for general-purpose links to publicly shared data.

  1. If you don't have gsutil, install gsutil.

  2. Get the name of the bucket containing the public data.

  3. If the bucket is public (and not just some of the data within it), you can list some or all of the data (objects) contained in the bucket by using the ls command.

    For example, the Google public bucket gcp-public-data-landsat contains the Landsat public dataset. You can list files with the prefix LC08/PRE/063/046/LC80630462016 with the command:

    gsutil ls -r gs://gcp-public-data-landsat/LC08/PRE/063/046/LC80630462016*
  4. Get specific public objects contained in the bucket by using the cp command.

    For example, the following command downloads a file from the bucket gcp-public-data-landsat to your local directory:

    gsutil cp gs://gcp-public-data-landsat/LC08/PRE/063/046/LC80630462016136LGN00/LC80630462016136LGN00_B11.TIF .
answered Nov 12 by Sirajul
• 41,000 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 41,000 points
34 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10 in GCP by Sirajul
• 41,000 points
110 views