Wireless Access

Reply
Contributor I

Using ArubaOS 8 APIs to set up a WiFi Network

This post will walk through on how to configure a WiFi Network using APIs. This will be helpful to any Developer or Automation Engineer to get started with APIs available in ArubaOS 8 and do their further exploration. You might find the "Inputs" used in the "POST Body" useful.

 

My Setup:
The following is how the Setup looks, I am going to configure an SSID called “API-Demo” on the cluster using API calls.
I will be using Postman tool and will also share the equivalent Container and Object which was referred in the Swagger UI.My-Setup.jpg

The following is my Configuration Node hierarchy.

I will be creating all the configurations on the Group  “/md/Campus-A”

Configuration Node Hierarchy.jpg

 

Assumption:

Mobility Master and Managed Devices are UP and running.

The APs are terminated on the Cluster.

 

Swagger UI:
Swagger UI can be accessed using the following link
https://<MM-IP-Address>/api/

 

Postman

Get Postman downloaded and installed on your Windows or Mac. Now let’s get started.

 

Controller Login:

First I need to login into the Controller in order to start configuring.Controller Login.jpg

I will be getting an "UIDARUBA": "0a94f2e6-a967-458d-bcc9-ebea0cf3c15c" which will be used in subsequent API calls.

 

Create User VLAN:

Swagger UI:

CONTAINERS

 Interfaces

OBJECT

 POST /object/vlan_id

 Postman:

Create User VLAN ID.jpg

 

Create Dot1x Auth Profile:

Swagger UI:

CONTAINERS

     Authentication

OBJECT

     POST /object/dot1x_auth_profile

Postman:Create Dot1x Auth Profile.jpg

 

Create AAA Profile:

Swagger UI:

CONTAINERS

     Authentication

OBJECT

     POST /object/aaa_prof

Postman:Create aaa profile.jpg

 

Create SSID Profile:

Swagger UI:

CONTAINER

 WLAN

OBJECT

 POST /object/ssid_prof

Postman:Create SSID Profile.jpg

 

Create Virtual AP Profile:

Swagger UI:

CONTAINER

 WLAN

OBJECT

 POST /object/virtual_ap

Postman:Create Virtual AP Profile.jpg

 

Link to AP-Group:

Swagger UI:

CONTAINER

 WLAN

OBJECT

 POST /object/ap_group

Postman:AP-Group Linking.jpg

 

Write Memory:

Swagger UI:

CONTAINER

 Controller

OBJECT

 POST /object/write_memory

Postman:Write Memory.jpg

 

Verification:

Verifying if "API-Demo" SSID is created:BSS Table.jpg

 

 

EXTRAS - BONUS :)

1) Getting VLANS:

How to get the VLAN configured in the Controller 192.168.17.177 (/md/Campus-A/20:4c:03:15:b9:9c)

Swagger UI:

CONTAINER

 Interfaces

OBJECT

 GET /object/vlan_id

Postman:Get VLAN for MD1.jpg

 

2) Show Commands:Get AP Database.jpg

 

3) Enable/Disable SSID:

Swagger UI:

CONTAINER

 WLAN

OBJECT

 POST /object/ssid_prof

Postman:

Disable SSID:Disable SSID.jpg

Enable SSID:

Enable SSID.jpg

 

Hope you find this useful. Please post your feedback !

 

Regards,

Kapildev Erampu

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: