Set Https Proxy - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Proxy
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/proxy/http
Reply
{"http":"http://cisco.com:8080","success":"true","getAt":"2013-08-14 17:13:05"}

Set HTTPS Proxy

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

Advertisement

Table of Contents
loading

Table of Contents