Select a version:
curl -k -X POST -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/ver/verselect?idx=1&reboot=Yes&js=1"
If successful, the following is an example of the return body:
"response": {
"code": "10",
"result": "success",
"message": ""
}
And system will reboot successfully to the new version.
Delete a version:
curl -k -X POST -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/ver/verselect?idx=2&erase=Yes&js=1"
If successful, the following is an example of the return body:
"response": {
"code": "10",
"result": "success",
"message": ""
}
Reset Device Control Command
Table 227: Command Details
Description
Command Detail
https://192.168.0.1/ws/v2/device_ctl/reset/<Level_1_URI_Parameter>
Command URL
Allows performing a device reset or factory reset (restore factory default
settings). A device reset reboots the target unit. A factory reset does not
trigger any reboot for D9800.
Command Information
POST
HTTP Method
Write
Access Type
User, Admin
Access Level
N/A
GET Syntax
Factory Reset:
POST "https://192.168.0.1/ws/v2/device_ctl/reset/factory"
Reboot:
POST "https://192.168.0.1/ws/v2/device_ctl/reset/reboot"
POST Syntax
Only HTTP data body is
supported. POST from
XML/JSON file is not supported.
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
272
API Definitions
Reset Device Control Command