{"id":192533,"date":"2021-08-05T07:10:51","date_gmt":"2021-08-05T14:10:51","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=192533"},"modified":"2021-08-05T07:10:52","modified_gmt":"2021-08-05T14:10:52","slug":"create-a-cloud-storage-bucket-in-google-cloud-platform-gcp","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/create-a-cloud-storage-bucket-in-google-cloud-platform-gcp\/","title":{"rendered":"Create a cloud storage bucket in Google Cloud Platform (GCP)"},"content":{"rendered":"<p>Google&#8217;s cloud storage service enables users to store objects in the cloud. An object can be a file of any format (ex. PDF, Word doc, images etc). The files are stored under storage buckets which are analogous to folders on the PCs.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>&nbsp; application provides an easy interface to create cloud storage buckets in Google Cloud Platform.<\/p>\n<h1>To create a cloud storage bucket in GCP,<\/h1>\n<ul>\n<li>In the &#8216;Cloud Storage&#8217; tab, click on &#8216;Add Bucket&#8217;.<\/li>\n<li>Enter the bucket name and press &#8216;Add&#8217;<\/li>\n<\/ul>\n<p>In this below example,&nbsp; cloud storage bucket &#8216;my-iot-folder-3&#8217; is created using&nbsp; the IoT Cloud Tester tool.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/create_cloud_bucket.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-192537\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/create_cloud_bucket.png\" alt=\"\" width=\"850\" height=\"730\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/create_cloud_bucket.png 850w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/create_cloud_bucket-300x258.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/create_cloud_bucket-768x660.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/create_cloud_bucket-600x515.png 600w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/a><\/p>\n<p>A post request is made to create the storage bucket. The bucket name is passed as a JSON object of the post request.<\/p>\n<p>POST https:\/\/storage.googleapis.com\/storage\/v1\/b?project=second-inquiry-315605 HTTP\/1.1<\/p>\n<p>{&#8220;name&#8221;:&#8221;my-iot-folder-3&#8243;}<\/p>\n<p><strong>Server response<\/strong><\/p>\n<p>{<\/p>\n<p>&#8220;kind&#8221;: &#8220;storage#bucket&#8221;,<\/p>\n<p>&#8220;selfLink&#8221;: &#8220;https:\/\/www.googleapis.com\/storage\/v1\/b\/my-iot-folder-3&#8221;,<\/p>\n<p>&#8220;id&#8221;: &#8220;my-iot-folder-3&#8221;,<\/p>\n<p>&#8220;name&#8221;: &#8220;my-iot-folder-3&#8221;,<\/p>\n<p>&#8220;projectNumber&#8221;: &#8220;496777850585&#8221;,<\/p>\n<p>&#8220;metageneration&#8221;: &#8220;1&#8221;,<\/p>\n<p>&#8220;location&#8221;: &#8220;US&#8221;,<\/p>\n<p>&#8220;storageClass&#8221;: &#8220;STANDARD&#8221;,<\/p>\n<p>&#8220;etag&#8221;: &#8220;CAE=&#8221;,<\/p>\n<p>&#8220;timeCreated&#8221;: &#8220;2021-08-05T14:06:47.298Z&#8221;,<\/p>\n<p>&#8220;updated&#8221;: &#8220;2021-08-05T14:06:47.298Z&#8221;,<\/p>\n<p>&#8220;iamConfiguration&#8221;: {<\/p>\n<p>&#8220;bucketPolicyOnly&#8221;: {<\/p>\n<p>&#8220;enabled&#8221;: false<\/p>\n<p>},<\/p>\n<p>&#8220;uniformBucketLevelAccess&#8221;: {<\/p>\n<p>&#8220;enabled&#8221;: false<\/p>\n<p>},<\/p>\n<p>&#8220;publicAccessPrevention&#8221;: &#8220;unspecified&#8221;<\/p>\n<p>},<\/p>\n<p>&#8220;locationType&#8221;: &#8220;multi-region&#8221;<\/p>\n<p>}<\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/I7sTU5TrTOc?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Google&#8217;s cloud storage service enables users to store objects in the cloud. An object can be a file of any format (ex. PDF, Word doc, images etc). The files are stored under storage buckets which are analogous to folders on &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/create-a-cloud-storage-bucket-in-google-cloud-platform-gcp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"iot_tutorial_template.php","meta":{"footnotes":""},"class_list":["post-192533","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=192533"}],"version-history":[{"count":1,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192533\/revisions"}],"predecessor-version":[{"id":192539,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192533\/revisions\/192539"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=192533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}