Get network settings
Returns network settings. If DHCP option is enabled, response will contain settings gained from DHCP server.
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- dhcp boolean
is dhcp turned on? true - on / false - off
- ip_address ipv4
ipv4 address of device
- mask ipv4
mask used by device
- gateway ipv4
gateway used by device
- dns ipv4
dns in ipv4 format used by device
{
"dhcp": false,
"ip_address": "192.168.1.96",
"mask": "255.255.255.0",
"gateway": "192.168.1.1",
"dns": "8.8.8.8"
}
{
"dhcp": false,
"ip_address": "192.168.1.96",
"mask": "255.255.255.0",
"gateway": "192.168.1.1",
"dns": "8.8.8.8"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
error message
{
"error": "Log In"
}
{
"error": "Log In"
}
Loading...