Cloud Storage Quickstart
Welcome to Google Cloud Storage!
Google Cloud Storage is a powerful and cost-effective storage solution for unstructured objects, perfect for everything
from hosting live web content to storing data for analytics to archiving and backup.
In this tutorial, we'll show you how easy it is to start storing objects in Cloud Storage. Here's what you'll do:
Create a bucket
Buckets hold the objects (any type of file) you want to store in Cloud Storage.
Upload and share objects
Start using your bucket by uploading an object and making it publicly available.
Clean up
As a final step, you'll delete the bucket and object you created for this tutorial.
Since you'll be deleting your bucket and object at the end, don't worry about getting charged for trying this tutorial.
Cloud Storage Quickstart
Project Setup
Cloud Storage needs a project to create resources.
Cloud Storage Quickstart
Create a bucket
In Cloud Storage, you store your objects in buckets. To create a bucket, you need to go to the Cloud Storage browser.
Open the menu on the left side of the console.
Then, select the Storage section.
Storage
Cloud Storage Quickstart
Create a bucket
Before you can start uploading objects, you need to create a "bucket" to store them in. Buckets help you organize your objects and control access to them.
Click Create bucket
On the bucket creation page, specify the bucket's properties. Here are some things to keep in mind:
Name: Think of something unique. You'll see an error if you enter a name that's the same as another bucket's name in Cloud Storage.
Default storage class: This is the storage class assigned to your bucket's objects by default.
Your choice depends mainly on how frequently you expect the objects to be accessed and whether you're serving the data worldwide. The storage class affects your cost.
Location: You'll want to keep your data close to the applications and users accessing it. The available choices depend on your storage class selection.
Click Create
Once we have a bucket create we need to allow all users viewing access. Click on permissions.
Added allUsers as New Members and on Storage Object Viewer
The storage Bucket is now public for all users to access via browsers
This page shows you how to make objects you own publicly readable. To learn how to access data that has been made public, see Accessing Public Data.
Note: When an object is shared publicly, any user with knowledge of the object URI can access the object for as long as the object is public.
GSUTILCODE SAMPLESREST APIS
Once bucket is public we can now upload files that can be viewed
Click into bucket name uconnstamforddsc
Click upload and select your html file
Click on file and you can see the URL link to the web page
No comments:
Post a Comment