Set Proxy For All - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API

Set Proxy for All

Example: set proxy for all
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"all":"http://cisco.com:8080"}' https://localhost/api/2.0/proxy/all
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Get Proxy for All
Example: get proxy for all
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/proxy/all
Reply
{"all":"http://cisco.com:8080","success":"true","getAt":"2013-08-14 17:13:05"}
Set Proxy Bypass List
Example: set proxy bypass list
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"no_for":"127.0.0.1"}' https://localhost/api/2.0/proxy/no_for
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Get Proxy Bypass List
Example: get proxy bypass list
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/proxy/no_for
Reply
{"no_for":"127.0.0.1","success":"true","getAt":"2013-08-14 17:13:05"}
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
Proxy
4-69

Advertisement

Table of Contents
loading

Table of Contents