Quickstart: Using the Console

This page shows you how to perform basic tasks in Cloud Storage using the Google Cloud 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. In the Cloud Console, on the project selector page, select or create a Cloud project.

    Go to the project selector page

  3. Verifica che la fatturazione sia attivata per il tuo progetto.

    scopri come attivare la fatturazione

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 Console.
    Open the Cloud Storage browser
  2. Click Create bucket to open the bucket creation form.

    Create Bucket image

  3. Enter your bucket information and click Continue to complete each step:

    • 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.

    • Choose Region for Location type and us-east1 (South Carolina) for Location.

    • Choose Standard for default storage class.

    • Choose Uniform for Access control.

  4. 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 and information about the file, such as its size and type.

Download the object

To download the image from your bucket:

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

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

  2. Click Download.

The image is saved to your local system.

Share the object

To allow public access to the bucket and create a publicly accessible URL for the image:

  1. Click the Permissions tab above the list of files.

  2. Click the Add members button.

    The Add members pane appears.

  3. In the New members text field, enter allUsers.

  4. In the Select a role drop down, select Storage > Storage Object Viewer.

  5. Click Save.

When you click on the Objects tab and return to the list of objects, you should see that the image is publicly accessible and has a link icon. The link icon reveals a shareable URL that looks like:

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

To remove public access from the bucket and stop sharing the image publicly:

  1. Click the Permissions tab above the list of objects.
  2. Find the entry that has allUsers listed in the Members column.
  3. Click the trash can icon that is associated with the allUsers entry.
  4. Click Remove.

You should see that the image 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 and upload a file to it:

  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.

After the upload completes, you should see the file name and information about the file, such as its size and type.

Delete the 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 account for the resources used in this quickstart, follow these steps.

  1. Open the Cloud Storage browser in the Google Cloud 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