Click here to Skip to main content
15,891,811 members
Articles / Google Cloud Storage
Article

Getting Started with Google Cloud Storage - Using the Developers Console

Rate me:
Please Sign up or sign in to vote.
4.67/5 (2 votes)
26 Nov 2014CC (Attr 3U)4 min read 8.3K   2  
This page provides a quick and easy way to get started with Google Cloud Storage using the Google Developers Console.

This article is for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers

This page provides a quick and easy way to get started with Google Cloud Storage using the Google Developers Console. It shows you how to:

  • Create a bucket and upload objects to it
  • Share an object publicly
  • Delete objects from a bucket

To follow a similar exercise using the Google Cloud Storage gsutil command line tool, see Using gsutil Command Line.

Prerequisites

Before you can start the exercises though, you must have access to Google Cloud Storage to complete these exercises. You can access Google Cloud Storage if you were added as a project team member to an existing Google Account or if you have recently created a Google Cloud Storage account (for example, if you followed the steps in Sign Up).

Step 1: Create a bucket

  1. In the Developers Console, click Add bucket.

    Image 1

  2. In the New Bucket dialog, enter a name and click Create.

    For information about acceptable bucket names, see Bucket Name Requirements.

    Image 2

If you get a message that the bucket name is not available, it means that the bucket name is already taken. Google Cloud Storage has a single namespace so your bucket names must be unique across the entire Google Cloud Storage system. You'll have to modify the bucket name so that it is unique, but you must also follow the Bucket Name Requirements.

Step 2: Upload objects into the bucket

  1. In the Developers Console, click Upload.

    Image 3

  2. In the file dialog, select one or more files to upload.
  3. Click Open to start the upload process.
  4. A window showing the upload progress is displayed. You can minimize this window and the upload will continue.

    Image 4

You can also upload data by dragging and dropping your local files onto the bucket in the console window. For more information, see To upload data to a bucket by dragging and dropping files.

Step 3: Create a folder in the bucket

Because the Google Cloud Storage system has no notion of folders, folders created in the Google Developers Console are a convenience to help you organize objects in a bucket. As a visual aid, the Google Developers Console shows folders with a folder icon image to help you distinguish them from objects.

  1. In the Developers Console, navigate to a bucket or existing folder in a bucket where you want to create a new folder.
  2. Click New folder.

    Image 5

  3. In the New folder dialog, provide a name for the folder.

    Image 6

  4. Click the folder icon to navigate into the folder.

    Image 7

  5. At this point, you can:
    • Upload data into the folder or create a new folder.
    • Navigate up to the container of the folder by clicking the container name in the breadcrumb trail. In the following example, the container of the archive folder is example-bucket.

      Image 8

Step 4: Download an object

You can download data from your bucket, directly from your browser, by placing the cursor over an object name, right clicking, and selecting the option to save the object. For example, the following example demonstrates downloading an image using the Google Chrome browser.

Image 9

If you click an object's name, your browser will try to display the object if it can; otherwise, your browser will download the object or prompt you to download it.

Note: If you want to download many objects, consider using the gsutil tool.

Step 5: Share an object publicly

  1. In the Developers Console, select the checkbox in the SHARED PUBLICLY column for the object to share.

    Image 10

  2. Get the link to share by doing one of the following:
    1. Click the Public link that is displayed next to the checkbox, wait for the object to load in a new browser window, and then get the object's sharable URL in the browser's address bar.
    2. Right click the Public link element and copy the object's URL directly.

For more information about sharing your data publicly, see Sharing your data publicly.

Step 6: Delete objects

  1. In the Developers Console, select the objects (including folders) that you want to delete by checking the box next to them.
  2. Click Delete.

    Image 11

  3. Click OK in the Delete confirmation window.

    Image 12

    Warning: Object deletion cannot be undone. Google Cloud Storage is designed to give developers a high amount of flexibility and control over their data, and Google maintains strict controls over the processing and purging of deleted data. To protect yourself from mistakes, you can configure object versioning on your bucket(s).

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution 3.0 Unported License


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --