{"id":179607,"date":"2021-05-05T00:27:57","date_gmt":"2021-05-05T07:27:57","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=179607"},"modified":"2021-05-05T00:27:58","modified_gmt":"2021-05-05T07:27:58","slug":"get-the-list-of-gateway-devices-in-google-cloud-platform-gcp-using-iot-cloud-tester","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/get-the-list-of-gateway-devices-in-google-cloud-platform-gcp-using-iot-cloud-tester\/","title":{"rendered":"Get the list of gateway devices in Google Cloud Platform (GCP) using IoT Cloud Tester"},"content":{"rendered":"<p>Gateway devices connect its client devices to the Google Cloud Platform.&nbsp;<\/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 gateway devices within a device registry in the Google Cloud platform.<\/p>\n<h1>To get the list of gateway devices within a device registry in Google Cloud project,<\/h1>\n<ul>\n<li>Select the project.<\/li>\n<li>In the &#8216;Gateways&#8217; tab, press&nbsp; &#8216;List Gateways&#8217; button.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/list_gateways.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179608\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/list_gateways.png\" alt=\"\" width=\"846\" height=\"728\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/list_gateways.png 846w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/list_gateways-300x258.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/list_gateways-768x661.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/list_gateways-600x516.png 600w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/a><\/p>\n<p>To bind device to a gateway in GCP, a post request is made to the below URL. IoT Cloud Tester tool generates the device key for the Gateway and includes it as a post parameter.<\/p>\n<p><strong>Request sent to GCP to get gateway list<\/strong><\/p>\n<p>GET:https:\/\/cloudiot.googleapis.com\/v1\/projects\/iot-cloud-tutorial\/locations\/asia-east1\/registries\/reg_193129\/devices?gatewayListOptions.gatewayType=GATEWAY<\/p>\n<p><strong>Response from GCP<\/strong><\/p>\n<p>[ {<\/p>\n<p>&#8220;id&#8221; : &#8220;gw_32110&#8221;,<\/p>\n<p>&#8220;numId&#8221; : 3145477801942776<\/p>\n<p>}, {<\/p>\n<p>&#8220;id&#8221; : &#8220;gw_721802&#8221;,<\/p>\n<p>&#8220;numId&#8221; : 3195477528946045<\/p>\n<p>}, {<\/p>\n<p>&#8220;id&#8221; : &#8220;gw_989392&#8221;,<\/p>\n<p>&#8220;numId&#8221; : 3189242221008618<\/p>\n<p>} ]<\/p>\n<p><\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/lNEKNaBprk0?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gateway devices connect its client devices to the Google Cloud Platform.&nbsp; IoT Cloud Tester&nbsp; application provides an easy interface to get the list of gateway devices within a device registry in the Google Cloud platform. To get the list of &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/get-the-list-of-gateway-devices-in-google-cloud-platform-gcp-using-iot-cloud-tester\/\">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-179607","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/179607","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=179607"}],"version-history":[{"count":1,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/179607\/revisions"}],"predecessor-version":[{"id":179610,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/179607\/revisions\/179610"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=179607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}