API Reference

Examples

The following netBooter B and DU HTTP API examples utilize cURL to send the HTTP request. You may replace curl with your app or library of choice (e.g. requests for python, wget, etc).


curl Examples

All examples assume the device ip is 192.168.1.100, and the username/password is the factory default username/username


Turn outlet 1 OFF

curl -u admin:password "http://192.168.1.100/cmd.cgi?$A3 1 0"

Reboot outlet 2

curl -u admin:password "http://192.168.1.100/cmd.cgi?$A4 2"

Get outlet statuses

curl -u admin:password "http://192.168.1.100/cmd.cgi?$A5"


Python requests examples


Turn outlet 1 OFF

import requests

response = requests.get(
    "http://192.168.1.100/cmd.cgi?$A3 1 0",
    auth=('admin', 'password')
)
print(response.text)