{"id":177508,"date":"2021-04-17T17:44:31","date_gmt":"2021-04-18T00:44:31","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=177508"},"modified":"2021-04-17T18:10:37","modified_gmt":"2021-04-18T01:10:37","slug":"update-device-registry-in-google-cloud-platform-gcp-using-iot-cloud-tester","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/update-device-registry-in-google-cloud-platform-gcp-using-iot-cloud-tester\/","title":{"rendered":"Update device registry in Google Cloud Platform (GCP) using IoT Cloud Tester"},"content":{"rendered":"<p>Device registries in the Google Cloud can be updated using the\u00a0<a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>\u00a0 application.<\/p>\n<h1>To update a device registry in Google Cloud project,<\/h1>\n<ul>\n<li>Get the list of device registries in the &#8216;Device Registries&#8217; tab.<\/li>\n<li>Select a registry and press &#8216;Edit Registry&#8217;<\/li>\n<li>Following fields can be updated in the device registry,\n<ul>\n<li>Protocol used by the devices &#8211; MQTT or HTTP or both<\/li>\n<li>Logging level &#8211; Disabled\/Error\/Info\/Debug<\/li>\n<li>Default topic<\/li>\n<li>Device State topic (optional)<\/li>\n<li>Additional topic(s) (optional)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>In the below example, the protocol, Logging and Additional topic fields are updated for the device registry.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-177511\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry1.png\" alt=\"\" width=\"850\" height=\"783\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry1.png 850w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry1-300x276.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry1-768x707.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry1-600x553.png 600w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-177513\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry2.png\" alt=\"\" width=\"854\" height=\"779\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry2.png 854w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry2-300x274.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry2-768x701.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry2-600x547.png 600w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><\/a><\/p>\n<p>To update a device registry request in GCP, a post request is made to the below URL with the\u00a0update mask<\/p>\n<p><strong>Request sent to GCP to updatedevice registry.<\/strong><\/p>\n<p><code><\/code><\/p>\n<p>POST:https:\/\/cloudiot.googleapis.com\/v1\/projects\/iot-cloud-tutorial\/locations\/asia-east1\/registries\/reg_193129?updateMask=event_notification_configs,log_level,http_config.http_enabled_state,state_notification_config.pubsub_topic_name,mqtt_config.mqtt_enabled_state<\/p>\n<p><code><\/code><\/p>\n<p>{<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;eventNotificationConfigs&#8221; : [ {<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;pubsubTopicName&#8221; : &#8220;projects\/iot-cloud-tutorial\/topics\/temperature&#8221;<\/p>\n<p><code><\/code><\/p>\n<p>} ],<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;httpConfig&#8221; : {<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;httpEnabledState&#8221; : &#8220;HTTP_DISABLED&#8221;<\/p>\n<p><code><\/code><\/p>\n<p>},<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;logLevel&#8221; : &#8220;ERROR&#8221;,<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;mqttConfig&#8221; : {<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;mqttEnabledState&#8221; : &#8220;MQTT_ENABLED&#8221;<\/p>\n<p><code><\/code><\/p>\n<p>}<\/p>\n<p><code><\/code><\/p>\n<p>}<\/p>\n<p><code><\/code><\/p>\n<p>{<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;eventNotificationConfigs&#8221; : [ {<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;pubsubTopicName&#8221; : &#8220;projects\/iot-cloud-tutorial\/topics\/temperature&#8221;<\/p>\n<p><code><\/code><\/p>\n<p>} ],<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;httpConfig&#8221; : {<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;httpEnabledState&#8221; : &#8220;HTTP_DISABLED&#8221;<\/p>\n<p><code><\/code><\/p>\n<p>},<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;id&#8221; : &#8220;reg_193129&#8221;,<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;logLevel&#8221; : &#8220;ERROR&#8221;,<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;mqttConfig&#8221; : {<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;mqttEnabledState&#8221; : &#8220;MQTT_ENABLED&#8221;<\/p>\n<p><code><\/code><\/p>\n<p>},<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;name&#8221; : &#8220;projects\/iot-cloud-tutorial\/locations\/asia-east1\/registries\/reg_193129&#8221;,<\/p>\n<p><code><\/code><\/p>\n<p>&#8220;stateNotificationConfig&#8221; : { }<\/p>\n<p><code><\/code><\/p>\n<p>}<\/p>\n<p><code>\u00a0<\/code><\/p>\n<p>The updated registry can be viewed in the Google Cloud console.<\/p>\n<p><a href=\"https:\/\/console.cloud.google.com\/iot\/locations\/asia-east1\/registries\/reg_193129\/overview?project=iot-cloud-tutorial\">https:\/\/console.cloud.google.com\/iot\/locations\/asia-east1\/registries\/reg_193129\/overview?project=iot-cloud-tutorial<\/a><\/p>\n<p>Before the device registry update,<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/add_registry_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-177444\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/add_registry_3.png\" alt=\"\" width=\"1522\" height=\"958\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/add_registry_3.png 1522w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/add_registry_3-300x189.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/add_registry_3-768x483.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/add_registry_3-1024x645.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/add_registry_3-600x378.png 600w\" sizes=\"auto, (max-width: 1522px) 100vw, 1522px\" \/><\/a><\/p>\n<p>After the device registry update,<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-177514\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry3.png\" alt=\"\" width=\"1421\" height=\"958\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry3.png 1421w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry3-300x202.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry3-768x518.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry3-1024x690.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/update_registry3-600x405.png 600w\" sizes=\"auto, (max-width: 1421px) 100vw, 1421px\" \/><\/a><\/p>\n<div class=\"video-responsive\">f<iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/UaZ8CnrmWfI?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Device registries in the Google Cloud can be updated using the\u00a0IoT Cloud Tester\u00a0 application. To update a device registry in Google Cloud project, Get the list of device registries in the &#8216;Device Registries&#8217; tab. Select a registry and press &#8216;Edit &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/update-device-registry-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-177508","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/177508","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=177508"}],"version-history":[{"count":6,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/177508\/revisions"}],"predecessor-version":[{"id":177521,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/177508\/revisions\/177521"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=177508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}