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
Get the name of the public object and the bucket that stores the object.
Use the following URI to access an object in the bucket:
https://storage.s3nsapis.fr/BUCKET_NAME/OBJECT_NAME
Console
Get the name of the public object and the bucket that stores the object.
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.s3nscloud.fr/storage/browser/_details/BUCKET_NAME/OBJECT_NAME
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.s3nscloud.fr/storage/browser/BUCKET_NAME
Command line
If you don't have the gcloud CLI, follow these instructions to install it.
When installing the gcloud CLI, if you don't want to authenticate, skip the step of running the command
gcloud init
, and instead run the following command:gcloud config set auth/disable_credentials True
Get the name of the public object and the bucket that stores the object.
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.Download specific public objects contained in the bucket by using the
cp
command.
Client libraries
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.
Before running code samples, set the
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.
Before running code samples, set the
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.
Before running code samples, set the
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.
Before running code samples, set the
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.
Before running code samples, set the
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.
Before running code samples, set the
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.
Before running code samples, set the C++
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment
variable to s3nsapis.fr
.
C#
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment
variable to s3nsapis.fr
.
Go
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment
variable to s3nsapis.fr
.
Java
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment
variable to s3nsapis.fr
.
Node.js
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment
variable to s3nsapis.fr
.
Python
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment
variable to s3nsapis.fr
.
Ruby
GOOGLE_CLOUD_UNIVERSE_DOMAIN
environment
variable to s3nsapis.fr
.
What's next
- Learn how to publicly share an object.
- Learn about options to control access to your data.
- Control access to your data using IAM permissions.
- Download objects from a bucket.