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.
The following is my Configuration Node hierarchy.
I will be creating all the configurations on the Group “/md/Campus-A”
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 linkhttps://<MM-IP-Address>/api/
Get Postman downloaded and installed on your Windows or Mac. Now let’s get started.
First I need to login into the Controller in order to start configuring.
I will be getting an "UIDARUBA": "0a94f2e6-a967-458d-bcc9-ebea0cf3c15c" which will be used in subsequent API calls.
Create User VLAN:
Create Dot1x Auth Profile:
Create AAA Profile:
Create SSID Profile:
Create Virtual AP Profile:
Link to AP-Group:
Verifying if "API-Demo" SSID is created:
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)
2) Show Commands:
3) Enable/Disable SSID:
Hope you find this useful. Please post your feedback !
I get the following error when creating the aaa profile:
Error: Role 'authenticated' is user defined, and can't be applied without Next Generation Policy Enforcement Firewall
What does that mean and also what is the diffrence between `authenticated` and `guest` roles ?
At Aruba, we believe that the most dynamic customer experiences happen at the Edge. Our mission is to deliver innovative solutions that harness data at the Edge to drive powerful business outcomes.
© Copyright 2020 Hewlett Packard Enterprise Development LPAll Rights Reserved.