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 page, click the name of the bucket that you created.

  3. In the Objects tab, click Upload files.

  4. In the file dialog, go 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, click Download .

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. Ensure the view is set to Members. Click Add.

    The Add members pane appears.

  3. In the New members box, enter allUsers.

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

  5. Click Save.

  6. In the Are you sure you want to make this resource public? window, click Allow public access.

To verify, click the Objects tab to return to the list of objects. Your object's Public access column should read Public to internet. The Copy URL button provides a shareable URL similar to the following:

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. Select the checkbox for that entry.

  3. Click Remove.

  4. In the Delete allUsers window, click Confirm.

In the Objects tab, you should see that the image no longer has a Copy URL button associated with it.

Create folders

  1. In the Objects tab, 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 arrow next to Bucket details to return to the buckets level.

  2. Select the bucket.

  3. Select the checkbox next to folder1.

  4. Click on the Delete button.

  5. In the Delete selected folder? window, enter the folder name you want to delete.

  6. Click Confirm 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. In the Delete bucket? window, enter the bucket name you want to delete.
  4. Click Confirm.

What's next