{"id":13018,"date":"2016-06-22T13:27:20","date_gmt":"2016-06-22T18:27:20","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=13018"},"modified":"2021-10-13T15:21:33","modified_gmt":"2021-10-13T20:21:33","slug":"current-dhcp-setting","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_requests\/making-requests\/current-dhcp-setting\/","title":{"rendered":"Retrieving the Current DHCP Setting"},"content":{"rendered":"<p><strong>Example<\/strong>: Retrieving the current DHCP setting using the <strong>method<\/strong> URI parameter.<\/p>\n<pre class=\"brush:xml\">GET https:\/\/192.168.2.1\/api\/dhcp?method=GET\r\n\r\nStatus: HTTP\/1.1 200 OK\r\n{\r\n    \"code\" : 200, \r\n        \"result\" : {\r\n        \"defaultGateway\" : \"192.168.2.1\",\r\n        \"domain\" : \"\", \r\n        \"enabled\" : true,\r\n        \"fixedAddresses\" : [  \r\n            {\r\n                \"ip\" : \"192.168.2.15\",\r\n                \"mac\" : \"00:1A:12:19:3F:60\"\r\n            }\r\n        ], \t\r\n        \"leaseTime\" : 86400, \r\n        \"leases\" : [ \r\n            {\r\n                \"expiration\" : 70359,\r\n                \"hostName\" : \"my-pc\",\r\n                \"ip\" : \"192.168.2.103\",\r\n                \"mac\" : \"00:3a:83:10:24:DC\"\r\n            } \r\n        ], \r\n        \"maxLeases\" : 200,\r\n        \"options\" : [ \"dhcp-authoritative\" ], \r\n        \"rangeEnd\" : \"192.168.2.254\",  \r\n        \"rangeStart\" : \"192.168.2.100\",  \r\n        \"subnetAddress\" : \"192.168.2.0\",  \r\n        \"subnetMask\" : \"255.255.255.0\"  \r\n    },  \r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Example: Retrieving the current DHCP setting using the method URI parameter. GET https:\/\/192.168.2.1\/api\/dhcp?method=GET Status: HTTP\/1.1 200 OK { &#8220;code&#8221; : 200, &#8220;result&#8221; : { &#8220;defaultGateway&#8221; : &#8220;192.168.2.1&#8221;, &#8220;domain&#8221; : &#8220;&#8221;, &#8220;enabled&#8221; : true, &#8220;fixedAddresses&#8221; : [ { &#8220;ip&#8221; : &#8220;192.168.2.15&#8221;, &#8220;mac&#8221; : &#8220;00:1A:12:19:3F:60&#8221; } ], &#8220;leaseTime&#8221; : 86400, &#8220;leases&#8221; : [ { &#8220;expiration&#8221; : 70359, [&hellip;]<\/p>\n","protected":false},"author":1872,"featured_media":0,"parent":12981,"menu_order":3,"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-13018","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13018","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=13018"}],"version-history":[{"count":15,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13018\/revisions"}],"predecessor-version":[{"id":32165,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13018\/revisions\/32165"}],"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=13018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}