Get network settings
Returns network settings. If DHCP option is enabled, response will contain settings gained from DHCP server.
Responses
- 200
- 401
- 403
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- dhcp boolean
Determines whether the DHCP is enabled
- ip_address ipv4
Device IP address
- mask ipv4
Network mask
- gateway ipv4
Network gateway
- dns ipv4
Network DNS server
{
"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 information
{
"error": "Log In"
}
{
"error": "Log In"
}
Administrator rights required
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error information
{
"error": "Administrator rights required"
}
Loading...