-
Fast, scalable, highly available object store.
Store
your data with pay-as-you-go
pricing
that scales as your needs grow. Objects can be terabytes in size and
stored in the United States, European Union, or Asia.
-
Your data in the cloud.
Access your data with an HTTP
API, a web-based interface, a command line tool, or one of many
language libraries. Serve static data directly from Cloud Storage or
store data that you can use with
App Engine
,
Compute Engine
,
BigQuery
,
Cloud SQL
,
and
Prediction API
.
- Easy, flexible authentication and sharing. Supports OAuth 2.0 authentication, individual, project, or group-level access controls, and customizable default object ACLs.
-
-
Sign up
- If you don't already have one, sign up for a Google account .
- Create a Google Cloud Storage enabled project via the Google Cloud Console .
-
Install gsutil
gsutil is a command line tool that you can use to access Google Cloud Storage. It requires Python 2.6.x or 2.7.x.
Installing on Linux or Mac OS X
-
Download and install gsutil.
Download and extract
gsutil
into yourHOME
directory using the following command:$ curl https://storage.googleapis.com/pub/gsutil.tar.gz | tar xvz -C "$HOME"
-
Add gsutil to your path.
Add the following line to your ~/.bashrc file on Linux or to your ~/.bash_profile on Mac OS X, and restart your terminal for the changes to take effect.
export PATH="$PATH:~/gsutil"
-
Authenticate to the Google Cloud platform.
When prompted for a project ID, use the one you created in Step 1.
$ gsutil config
Installing on Windows
-
Download and install
Python
.
We recommend that you install Python in its default location (e.g.,
C:\Python27
). -
Download and extract the gsutil archive.
Download the gsutil archive , and then extract it to your root directory (e.g.,
C:\gsutil
). -
Open a command window and modify the
PATH
variable temporarily to add the location where you installed Python.set PATH=%PATH%;C:\Python27
-
In the same command window, change the directory to where gsutil is installed, and authenticate to the Google Cloud platform.
When prompted for a project ID, use the one you created in Step 1.
C: cd \gsutil python gsutil config
-
Download and install gsutil.
-
Create a Google Cloud Storage bucket using gsutil
-
Create a bucket.
$ gsutil mb gs://<bucket-name>
-
Upload some data to the bucket.
$ echo 'hello world' > foo.txt $ gsutil cp foo.txt gs://<bucket-name>
-
View the contents of the bucket.
$ gsutil ls gs://<bucket-name>
-
Download and output the data.
$ gsutil cp gs://<bucket-name>/foo.txt -
-
Create a bucket.
-
What next?
- Review the Overview page.
- Try Getting Started: Using the gsutil Tool .
- Try Getting Started: Using the Developers Console .
- Read the Developer Guide .
- Contact Google for high-volume accounts.