Quickstart Using the Console

This page shows you how to perform basic tasks in Cloud Storage using the Google Cloud Platform Console.

Costs that you incur in Cloud Storage are based on the resources you use. This quickstart typically uses less than $0.01 USD worth of Cloud Storage resources.

Before you begin

  1. Sign in to your Google Account.

    If you don't already have one, sign up for a new account.

  2. Select or create a GCP project.

    Go to the Manage resources page

  3. Make sure that billing is enabled for your project.

    Learn how to enable billing

Create a bucket

Buckets are the basic containers that hold your data in Cloud Storage.

To create a bucket:

  1. Open the Cloud Storage browser in the Google Cloud Platform Console.
    Open the Cloud Storage browser
  2. Click Create bucket.
  3. Enter a unique Name for your bucket.
    • Do not include sensitive information in the bucket name, because the bucket namespace is global and publicly visible.
  4. Choose Regional for Storage class.
  5. Choose us-east1 for Location.
  6. Click Create.

That's it — you've just created a Cloud Storage bucket!

Upload an object into the bucket

Image of a kitten.

To upload the image above into your new bucket:

  1. Right-click on the image above and download it to your computer.
  2. In the Cloud Storage browser, click on the name of the bucket that you created.
  3. Click the Upload files button in the Objects tab.
  4. In the file dialog, navigate to the file that you downloaded and select it.

After the upload completes, you should see the file name, size, type, and last modified date in the bucket.

Download and display an object

Try these ways of interacting with the objects from the Cloud Storage browser:

  1. Right-click the file and select the option to save it.
  2. Click on the file to view it in your browser.

Share an object publicly

To create a publicly accessible URL for the file:

  1. Click the drop-down menu associated with the file.

    The drop-down menu appears as three vertical dots to the far right.

  2. Select Edit permissions from the drop-down menu.

  3. In the overlay that appears, click the + Add item button.

  4. In the row that is added, do the following:

    • In the Entity column, select User.
    • in the Name column, enter allUsers.
    • In the Access column, select Reader.
  5. Click Save.

You should see that the file is publicly accessible and has a link icon. The link icon reveals a URL that looks like:

https://storage.googleapis.com/<your-bucket-name>/kitten.png

To stop sharing the file publicly:

  1. Click the drop-down menu associated with the file.

    The drop-down menu appears as three vertical dots to the far right.

  2. Select Edit permissions from the drop-down menu.

  3. In the overlay that appears, click the X to the right of the allUsers entry.

  4. Click Save.

You should see that the file no longer has a link icon associated with it.

Create folders

  1. Click Create folder.
  2. Enter folder1 for Name and click Create.

You should see the folder in the bucket with an image of a folder icon to distinguish it from objects.

Create a subfolder, upload a file to it, and share it publicly:

  1. Click folder1.
  2. Click Create folder.
  3. Enter folder2 for Name and click Create.
  4. Click folder2.
  5. Click Upload files.
  6. In the file dialog, navigate to the screenshot that you downloaded and select it.
  7. After the upload completes, select the checkbox Share publicly next to the file.
  8. Click the Public link that is displayed next to the checkbox, wait for the object to load in a new browser window, and note the object's shareable URL in the browser's address bar.

You should see that the object is publicly accessible at a URL that contains the folder names in the path:

https://storage.googleapis.com/<your-bucket-name>/folder1/folder2/kitten.png

Delete objects

  1. Click the Buckets link to return to the Buckets level.
  2. Select the bucket.
  3. Select the checkbox next to folder1.
  4. Click on the Delete button.
  5. Click OK to permanently delete the folder and all objects and subfolders in it.

Clean up

To avoid incurring charges to your Google Cloud Platform account for the resources used in this quickstart:

  1. Open the Cloud Storage browser in the Google Cloud Platform Console.
    Open the Cloud Storage browser
  2. Select the checkbox next to the bucket that you created.
  3. Click Delete.
  4. In the pop-up window that appears, click Delete to permanently delete the bucket and its contents.

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Storage
Need help? Visit our support page.