Reset Device Control Command
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": {
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": {
Reset Device Control Command
Table 227: Command Details
Command Detail
Command URL
Command Information
HTTP Method
Access Type
Access Level
GET Syntax
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
"code": "10",
"result": "success",
"message": ""
}
"code": "10",
"result": "success",
"message": ""
}
Description
https://192.168.0.1/ws/v2/device_ctl/reset/<Level_1_URI_Parameter>
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.
POST
Write
User, Admin
N/A
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"
API Definitions