A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/storage/docs/access-public-data below:

Access public data | Cloud Storage

Some data stored in Cloud Storage is configured so that it's readable by anyone at any time. This public data can be accessed in several ways, depending on how you want to work with the data.

API Link Note: Accessing this link does not require authentication. It is suitable, for example, as a link in a web page, or for downloading with a command-line tool such as cURL.
  1. Get the name of the public object and the bucket that stores the object.

  2. Use the following URI to access an object in the bucket:

    https://storage.googleapis.com/BUCKET_NAME/OBJECT_NAME

For example, the Google public bucket gcp-public-data-landsat contains the Landsat public dataset. You can link to the publicly shared object LC08/01/001/003/LC08_L1GT_001003_20140812_20170420_01_T2/LC08_L1GT_001003_20140812_20170420_01_T2_B3.TIF with the link:

https://storage.googleapis.com/gcp-public-data-landsat/LC08/01/001/003/LC08_L1GT_001003_20140812_20170420_01_T2/LC08_L1GT_001003_20140812_20170420_01_T2_B3.TIF
Console Note: Accessing public data with the Google Cloud console requires you to sign in with a user account. The method described in the API link tab provides the most broadly applicable way to access individual public objects. The method described in the Command line tab provides the most efficient way to access collections of data.
  1. Get the name of the public object and the bucket that stores the object.

  2. Using a web browser, access the object with the following URI (you are asked to sign in if you are not already signed in):

    https://console.cloud.google.com/storage/browser/_details/BUCKET_NAME/OBJECT_NAME

  3. If the public has permission to list the bucket's contents, you can list all the objects in the bucket with the following URI:

    https://console.cloud.google.com/storage/browser/BUCKET_NAME

For example, the Google public bucket gcp-public-data-landsat contains the Landsat public dataset. You can access the bucket with:

https://console.cloud.google.com/storage/browser/gcp-public-data-landsat

Command line Note: Accessing public data with the gcloud CLI does not require authentication. This tool is suited for general access to buckets that contain publicly listable public data.
  1. If you don't have the gcloud CLI, follow these instructions to install it.

  2. Get the name of the public object and the bucket that stores the object.

  3. If permission to list the bucket's contents is granted to the public, you can list some or all of the 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 objects with the prefix LC08/01/001/003/LC with the following command:

    gcloud storage ls --recursive gs://gcp-public-data-landsat/LC08/01/001/003/LC*
    Note: Shells (like bash and zsh) can attempt to expand wildcards before passing the arguments to the gcloud CLI. To avoid these problems, surround the wildcarded expression with single quotes (on Linux) or double quotes (on Windows). For more information, see Potentially Surprising Behavior When Using Wildcards.
  4. Download 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:

    gcloud storage cp gs://gcp-public-data-landsat/LC08/01/001/003/LC08_L1GT_001003_20140812_20170420_01_T2/LC08_L1GT_001003_20140812_20170420_01_T2_B3.TIF .
Client libraries C++

For more information, see the Cloud Storage C++ API reference documentation.

To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries.

C#

For more information, see the Cloud Storage C# API reference documentation.

To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries.

Go

For more information, see the Cloud Storage Go API reference documentation.

To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries.

Java

For more information, see the Cloud Storage Java API reference documentation.

To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries.

Node.js

For more information, see the Cloud Storage Node.js API reference documentation.

To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries.

Python

For more information, see the Cloud Storage Python API reference documentation.

To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries.

Ruby

For more information, see the Cloud Storage Ruby API reference documentation.

To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.5