Device
Returns list of all devices on connected and multicast enabled network.
Resource URL
http://{host}/api/2.0/devices/.format
Example Request
GET
Returns a single device configuration.
Resource URL
http://{host}/api/2.0/devices/{id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired device. If the value is set to '0'(zero), it'll return the information of the device used to send the API. |
Example Request
GET
Update device configuration, specified by the required {id} parameter. Must be running from the desired device.
Resource URL
http://{host}/api/2.0/devices/{id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | The ID of the desired device. |
Example Request
PUT
GET devices/command/softReset
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Restarts all software components. Unsaved configuration is kept.
Resource URL
http://{host}/api/2.0/devices/command/softReset/.format
Example Request
GET
GET devices/command/hardReset
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Full restart of the device. If a standalone system, configuration will return to last saved one, removing all unsaved changes. If device connected to stack, configuration will be kept, as long as at least one device on the stack stays up.
Resource URL
http://{host}/api/2.0/devices/command/hardReset/.format
Example Request
GET
GET devices/command/shutDown
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Complete shutdown of the device.
Resource URL
http://{host}/api/2.0/devices/command/shutDown/.format
Example Request
GET
GET devices/command/saveConfig
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Saves configuration of all devices on stack, if any defined.
Resource URL
http://{host}/api/2.0/devices/command/saveConfig/.format
Example Request
GET
GET devices/switchBootImage/{image_id}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Switch to the specified boot image for next system reboot.
Resource URL
http://{host}/api/2.0/devices/switchBootImage/{image_id}/.format
Parameters
Parameter | Data Type | Description |
---|---|---|
image_id | integer | The ID of the desired image to switch to. |
Example Request
GET
Returns list of device's meta data. Data includes DeviceStatusTypes and current available images.
Resource URL
http://{host}/api/2.0/devices/meta/.format
Example Request
GET