Set Dns4 - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API

Set DNS4

Example: set DNS4
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{" dns4" :
"0"}' https://localhost/api/2.0/eth/dns4
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
Set DNS6
Example: set DNS6
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{" dns4" :
"0"}' https://localhost/api/2.0/eth/dns6
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
Apply Setting
Example: get run
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/run
Reply
{"run":"","success":"true","getAt":"2013-06-25 18:00:51"}
Issue a Command
Reboot CE340
Example: reboot CE340
Request
curl -k -X GET -H 'password: cisco123!' httpss://10.140.44.134/api/1.0/cmd/reboot
Reply
{"reboot":"true","success":"true","getAt":"2012-11-12 05:10:43"}
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
Issue a Command
4-15

Advertisement

Table of Contents
loading

Table of Contents