Ap Information - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API

AP Information

Set AP SSID
Example: set SSID to cisco
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"ssid" :
"cisco"}' https://localhost/api/2.0/wifi/ap/ssid
Reply
{"success":"true","updatedAt":"2012-11-12 06:25:47"}
Parameter Restrictions
The length of an AP SSID should be between 1 to 32 characters; otherwise, a 004 error is reported.
Get AP SSID
Example: get SSID
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/wifi/ap/ssid
Reply
{"ssid":"BluebirdAP","success":"true","getAt":"2013-05-15 10:46:49"}
Get SSID Hiding Status
Example: get SSID hiding status
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/wifi/ap/ssidHiding
Reply
{"ssidHiding":"0","success":"true","getAt":"2013-05-15 10:46:49"}
Parameter Restrictions
Only 0 or 1 is the valid value; otherwise, a 004 error is reported.
Set SSID Hiding Status
Example: set SSID hiding status
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"ssidHiding" : "0"}' https://localhost/api/2.0/wifi/ap/ssidHiding
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
AP Information
4-17

Advertisement

Table of Contents
loading

Table of Contents