Get Ipv4 - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API
Reply
{"gateway6":"","success":"true","getAt":"2013-06-25 18:09:46"}

Get IPv4

Example: get IPv4
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/ipv4
Reply
{"ipv4":"auto","success":"true","getAt":"2013-06-25 18:08:11"}
Get IPv6
Example: get IPv6
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/ipv6
Reply
{"ipv6":"auto","success":"true","getAt":"2013-06-25 18:08:55"}
Set IPv4
Example: set IPv4
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"ipv4" :
"auto"}' https://localhost/api/2.0/eth/ipv4
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
Set IPv6
Example: set IPv6
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"ipv6" :
"0"}' https://localhost/api/2.0/eth/ipv6
Reply
{"success":"true","updatedAt":"2013-05-15 15:07:03"}
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
Ethernet API
4-13

Advertisement

Table of Contents
loading

Table of Contents