Proxy - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API
Reply1
{"success":"true","updatedAt":"2013-06-13 11:36:19"}
Example2: set rotation of VGA1 to inverted
Request2
curl -k -X PUT -H 'password:admin123' -H 'Content-Type: application/json' -d
'{"rotation":"VGA1,inverted"}' https://localhost/api/2.0/resolution/rotation
Reply2
{"success":"true","updatedAt":"2013-06-13 11:39:43"}
Example3: set reflection of VGA1 to normal
Request3
curl -k -X PUT -H 'password:admin123' -H 'Content-Type: application/json' -d
'{"reflection":"VGA1,normal"}' https://localhost/api/2.0/resolution/reflection
Reply3
{"success":"true","updatedAt":"2013-06-13 11:41:33"}
Example4: set relation of VGA1 and DVI1 to 3
Request4
curl -k -X PUT -H 'password:admin123' -H 'Content-Type: application/json' -d
'{"relation":"VGA1,3,DVI1"}' https://localhost/api/2.0/resolution/relation
Reply4
{"success":"true","updatedAt":"2013-06-13 11:43:46"}

Proxy

Set HTTP Proxy
Example: set http proxy
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"http":"http://cisco.com:8080"}' https://localhost/api/2.0/proxy/http
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Get HTTP Proxy
Example: get core http proxy
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
Proxy
4-67

Advertisement

Table of Contents
loading

Table of Contents