{"id":13036,"date":"2016-06-22T13:29:39","date_gmt":"2016-06-22T18:29:39","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=13036"},"modified":"2022-08-01T13:56:12","modified_gmt":"2022-08-01T18:56:12","slug":"address-of-a-remote-end-point","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_requests\/making-requests\/address-of-a-remote-end-point\/","title":{"rendered":"Find the IP Address of a Remote End Point"},"content":{"rendered":"<p>Accessing objects within an array can be done using the index of the desired object in the path. Some collections support using an object&#8217;s unique identifier in place of the object&#8217;s index; generally, this unique identifier is a member called <strong>name<\/strong> or <strong>guid<\/strong>. For example, suppose an rCell was configured with a GRE tunnel named <em>MyGreTunnel<\/em>, and a user wanted to know the IP address of the remote end point of that tunnel. The user could make a RESTful GET request to <code>https:\/\/[device_ip]\/api\/greTunnels\/MyGreTunnel\/remoteIp<\/code>.<\/p>\n<p><strong>Example<\/strong>: Path to an element within an object in an array, using the object&#8217;s unique identifier.<\/p>\n<pre class=\"brush:xml\">GET https:\/\/192.168.2.1\/api\/greTunnels\/MyGreTunnel\/remoteIp\r\n\r\nStatus: HTTP\/1.1 200 OK\r\n{\r\n    \"code\" : 200, \r\n    \"result\" : \"166.184.38.73\",\r\n    \"status\" : \"success\"\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Accessing objects within an array can be done using the index of the desired object in the path. Some collections support using an object&#8217;s unique identifier in place of the object&#8217;s index; generally, this unique identifier is a member called name or guid. For example, suppose an rCell was configured with a GRE tunnel named [&hellip;]<\/p>\n","protected":false},"author":1872,"featured_media":0,"parent":12981,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-13036","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1872"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=13036"}],"version-history":[{"count":8,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13036\/revisions"}],"predecessor-version":[{"id":32922,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13036\/revisions\/32922"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/12981"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=13036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}