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. Faça login na sua Conta do Google.

    Se você ainda não tiver uma, inscreva-se.

  2. Selecione ou crie um projeto do GCP.

    Acessar a página Gerenciar recursos

  3. Verifique se o faturamento foi ativado para o projeto.

    Saiba como ativar o faturamento

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

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 shareable 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 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 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 GCP 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

Esta página foi útil? Conte sua opinião sobre:

Enviar comentários sobre…

Precisa de ajuda? Acesse nossa página de suporte.