3.11 Network

Getting current settings

Get the current Network settings. 

URL:

https://{{ip_addr}}/api/v1/network

HTTP method:

GET

Response code:

Standard HTTP response code, treating syntactic errors.

Response data:

{
    "data": {
        "dns": "8.8.8.8",
        "gateway": "192.168.1.1",
        "ipAddress": "192.168.1.173",
        "isDhcpEnabled": true,
        "isEthernetEnabled": true,
        "mask": "255.255.255.0"
    }
}

Section setting 

URL:

https://{{ip_addr}}/api/v1/network

HTTP method:

PUT

Response code:

Standard HTTP response code, treating syntactic errors.

Request body:
 {
    "isDhcpEnabled": "<boolean>",
    "isEthernetEnabled": "<boolean>",
    "ipAddress": "<string>",
    "dns": "<string>",
    "gateway": "<string>",
    "mask": "<string>"
}

Response data:

 {
    "data": {
        "dns": "8.8.8.8",
        "gateway": "192.168.1.1",
        "ipAddress": "192.168.1.173",
        "isDhcpEnabled": true,
        "isEthernetEnabled": true,
        "mask": "255.255.255.0"
    }
}