How to create Cisco Wireless LAN controller and start AP discovery using the Spectrum REST API

Document ID : KB000111462
Last Modified Date : 17/08/2018
Show Technical Document Details
Introduction:
How to create a Cisco Wireless LAN Controller and start the access point discovery using the Spectrum REST API.
Background:
The customer is looking to automate the creation of Cisco Wireless LAN controllers and discover the access points using the Spectrum REST API.
Environment:
Spectrum 10.2.X.
Instructions:
1. Create the WLC controller using the following URL:

2. Use the following Spectrum REST API call to create the Cisco Wireless Lan Controller:

http://<OneClickServer>:<port>/spectrum/restful/model?agentport=<agentport>&commstring=<communityString>&ipaddress=<IP Address> 

Example:  http://scoch03-T4425:80/spectrum/restful/model?agentport=161&commstring=public&ipaddress=10.241.250.42

2. Use the following Spectrum REST API call to send the Start_AP_Discovery action (0x00013340) to the Cisco_LWAPP_App model:

http://<OneClickServer>:<port>/spectrum/restful/action/0x00013340?mh=<MH of Cisco_LWAPP_App model>

Example: http://scoch03-T4425:80/spectrum/restful/action/0x00013340?mh=0x500005f

This will successfully create the Cisco Wireless LAN controller model and discover the access points for the controller.