Get the list of gateway devices in Google Cloud Platform (GCP) using IoT Cloud Tester


Gateway devices connect its client devices to the Google Cloud Platform. 

IoT Cloud Tester  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 gateway devices within a device registry in Google Cloud project,

  • Select the project.
  • In the 'Gateways' tab, press  'List Gateways' button.

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.

Request sent to GCP to get gateway list

GET:https://cloudiot.googleapis.com/v1/projects/iot-cloud-tutorial/locations/asia-east1/registries/reg_193129/devices?gatewayListOptions.gatewayType=GATEWAY

Response from GCP

[ {

"id" : "gw_32110",

"numId" : 3145477801942776

}, {

"id" : "gw_721802",

"numId" : 3195477528946045

}, {

"id" : "gw_989392",

"numId" : 3189242221008618

} ]