Get Own Ip Address - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API

Get Own IP Address

Example: get own IP address
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/wifi/ap/ownIpAddr
Reply
{"ownIpAddr":"192.168.1.2","success":"true","getAt":"2013-05-22 14:25:17"}
Get Background Protection
Example: get background protection
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/wifi/ap/bgProtection
Reply
{"bgProtection":"0","success":"true","getAt":"2013-05-22 14:25:17"}
Set bgProtection to 2
Example: get bgProtection to 2
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"bgProtection" : "2"}' https://localhost/api/2.0/wifi/ap/bgProtection
Reply
{"success":"true","updatedAt":"2013-05-22 14:25:17"}
Parameter Restrictions
The valid parameters are 0, 1, and 2.
Set Beacon Period
Example: set beacon period to 22
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"beaconPeriod" : "22"}' https://localhost/api/2.0/wifi/ap/beaconPeriod
Reply
{"success":"true","updatedAt":"2012-11-12 07:49:35"}
Parameter Restrictions
Only an interger in the range from 20 to 1000 is valid. Otherwise, a 004 error is reported.
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
AP Information
4-29

Advertisement

Table of Contents
loading

Table of Contents