Learn how to get started with 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.
For an interactive walkthrough similar to these tasks in Google Cloud console, click Guide me:
Before you beginIn the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Verify that billing is enabled for your Google Cloud project.
Make sure that you have the following role or roles on the project: Storage Admin
Check for the rolesIn the Google Cloud console, go to the IAM page.
Go to IAMIn the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
In the Google Cloud console, go to the IAM page.
Go to IAMIn the New principals field, enter your user identifier. This is typically the email address for a Google Account.
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Verify that billing is enabled for your Google Cloud project.
Make sure that you have the following role or roles on the project: Storage Admin
Check for the rolesIn the Google Cloud console, go to the IAM page.
Go to IAMIn the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
In the Google Cloud console, go to the IAM page.
Go to IAMIn the New principals field, enter your user identifier. This is typically the email address for a Google Account.
Buckets are the basic containers that hold your data in Cloud Storage.
To create a bucket:
Click add_box Create to open the bucket creation form.
Expand each section to enter your bucket information and click Continue to complete each step:
In the Getting started section, enter a globally unique name for your bucket.
Don't include sensitive information in the bucket name, because the bucket namespace is global and publicly visible.
See bucket naming requirements.-
), underscores (_
), and dots (.
). Spaces are not allowed. Names containing dots require verification.In the Choose where to store your data section, select the Region radio button as the Location type. Selecting the region option reveals a drop-down field. Use the default value in this field.
In the Choose how to store your data section, use the default values.
In the Choose how to control access to objects section, do the following:
Clear the checbox next to Enforce public access prevention on this bucket; this lets you share the object later.
For Access control, use the default value.
In the Choose how to protect object data section, use the default value.
Click Create.
That's it — you've just created a Cloud Storage bucket!
Upload an object into the bucketTo upload a sample object into your new bucket:
Right-click the following image and download it to your computer.
In the Cloud Storage buckets page, click the name of the bucket that you created.
In the Objects tab, click Upload files.
In the file dialog, go to the file that you downloaded and select it.
After the upload completes, you should see the filename and information about the file, such as its size and type.
Download the objectTo download the image from your bucket, click Download file_download.
To allow public access to the bucket and create a publicly accessible URL for the image:
Click the Permissions tab above the list of files.
Click the Grant Access button to add a new Principal.
The Add principals pane appears.
In the New principals box, enter allUsers
.
In the Select a role drop-down, select Cloud Storage > Storage Object Viewer.
Click Save.
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:
Click the Permissions tab above the list of objects.
Click the checkbox associated with the entry that has allUsers listed in the Principal column.
Click the Remove Access button.
In the dialog that appears, click Confirm.
In the Objects tab, you should see that the image no longer has a Copy URL button associated with it.
Note: After you remove public access to the image, you may be able to access a cached version of it for a period of time. Create foldersIn the Objects tab, click Create folder.
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:
Click folder1.
Click Create folder.
Enter folder2 for Name and click Create.
Click folder2.
Click Upload files.
In the file dialog, navigate to the screenshot that you downloaded and select it.
After the upload completes, you should see the filename and information about the file, such as its size and type.
Delete the objectsClick the arrow next to Bucket details to return to the buckets level.
Select the bucket.
Select the checkbox next to folder1.
Click the Delete button.
In the window that opens, confirm you want to proceed with the deletion.
Click Delete to delete the folder and all objects and subfolders in it.
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4