Retrieving the Current DHCP Setting

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
{
    "code" : 200, 
        "result" : {
        "defaultGateway" : "192.168.2.1",
        "domain" : "", 
        "enabled" : true,
        "fixedAddresses" : [  
            {
                "ip" : "192.168.2.15",
                "mac" : "00:1A:12:19:3F:60"
            }
        ], 	
        "leaseTime" : 86400, 
        "leases" : [ 
            {
                "expiration" : 70359,
                "hostName" : "my-pc",
                "ip" : "192.168.2.103",
                "mac" : "00:3a:83:10:24:DC"
            } 
        ], 
        "maxLeases" : 200,
        "options" : [ "dhcp-authoritative" ], 
        "rangeEnd" : "192.168.2.254",  
        "rangeStart" : "192.168.2.100",  
        "subnetAddress" : "192.168.2.0",  
        "subnetMask" : "255.255.255.0"  
    },  
}