dhcp

Gets the current DHCP settings and status

get/dhcp/status

Request

  • Base URL
    /control (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP basic

Response

OK.

enabledboolean
interface_namestring

Example response

{
  "v6": {
    "range_start": "range_start",
    "lease_duration": 6
  },
  "leases": [
    {
      "hostname": "dell",
      "expires": "2017-07-21T17:32:28Z",
      "ip": "192.168.1.22",
      "mac": "00:11:09:b3:b3:b8"
    },
    {
      "hostname": "dell",
      "expires": "2017-07-21T17:32:28Z",
      "ip": "192.168.1.22",
      "mac": "00:11:09:b3:b3:b8"
    }
  ],
  "static_leases": [
    {
      "hostname": "dell",
      "ip": "192.168.1.22",
      "mac": "00:11:09:b3:b3:b8"
    },
    {
      "hostname": "dell",
      "ip": "192.168.1.22",
      "mac": "00:11:09:b3:b3:b8"
    }
  ],
  "interface_name": "interface_name",
  "enabled": true,
  "v4": {
    "range_end": "192.168.10.50",
    "subnet_mask": "255.255.255.0",
    "range_start": "192.168.1.2",
    "lease_duration": 0,
    "gateway_ip": "192.168.1.1"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.