{"id":192654,"date":"2021-08-06T07:05:56","date_gmt":"2021-08-06T14:05:56","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=192654"},"modified":"2021-08-06T07:05:57","modified_gmt":"2021-08-06T14:05:57","slug":"get-the-list-of-cloud-storage-buckets-in-google-cloud-platform-gcp","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/get-the-list-of-cloud-storage-buckets-in-google-cloud-platform-gcp\/","title":{"rendered":"Get the list of cloud storage buckets 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 get the list of cloud storage buckets in Google Cloud Platform.<\/p>\n<h1>To get the list of cloud storage buckets in GCP,<\/h1>\n<ul>\n<li>In the &#8216;Cloud Storage&#8217; tab, click on &#8216;List Buckets&#8217;.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/list_cloud_buckets.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-192655\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/list_cloud_buckets.png\" alt=\"\" width=\"1244\" height=\"815\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/list_cloud_buckets.png 1244w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/list_cloud_buckets-300x197.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/list_cloud_buckets-768x503.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/list_cloud_buckets-1024x671.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/08\/list_cloud_buckets-600x393.png 600w\" sizes=\"auto, (max-width: 1244px) 100vw, 1244px\" \/><\/a><\/p>\n<p>A GET request is made to get the list of cloud storage buckets.<\/p>\n<p>GET https:\/\/storage.googleapis.com\/storage\/v1\/b?project=second-inquiry-315605 HTTP\/1.1<\/p>\n<p><strong>Server Response to get the cloud storage buckets<\/strong><\/p>\n<p>{<\/p>\n<p>&#8220;kind&#8221;: &#8220;storage#buckets&#8221;,<\/p>\n<p>&#8220;items&#8221;: [<\/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-bucket-5&#8221;,<\/p>\n<p>&#8220;id&#8221;: &#8220;my-iot-bucket-5&#8221;,<\/p>\n<p>&#8220;name&#8221;: &#8220;my-iot-bucket-5&#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-07-09T13:34:20.476Z&#8221;,<\/p>\n<p>&#8220;updated&#8221;: &#8220;2021-07-09T13:34:20.476Z&#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<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&#8221;,<\/p>\n<p>&#8220;id&#8221;: &#8220;my-iot-folder&#8221;,<\/p>\n<p>&#8220;name&#8221;: &#8220;my-iot-folder&#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-05T13:17:13.709Z&#8221;,<\/p>\n<p>&#8220;updated&#8221;: &#8220;2021-08-05T13:17:13.709Z&#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<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-2&#8221;,<\/p>\n<p>&#8220;id&#8221;: &#8220;my-iot-folder-2&#8221;,<\/p>\n<p>&#8220;name&#8221;: &#8220;my-iot-folder-2&#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-05T13:56:11.999Z&#8221;,<\/p>\n<p>&#8220;updated&#8221;: &#8220;2021-08-05T13:56:11.999Z&#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<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<p>]<\/p>\n<p>}<\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/mTkdrGrbJ48?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\/get-the-list-of-cloud-storage-buckets-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-192654","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192654","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=192654"}],"version-history":[{"count":1,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192654\/revisions"}],"predecessor-version":[{"id":192656,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/192654\/revisions\/192656"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=192654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}