Summary: In Aruba Central’s demos we do talk about APIs, but it requires prior knowledge in programming skills, install software/add-ons on our devices, which sometimes makes their execution complex. For this reason, in this post we want to present you a tool that will easy these demos with some specific use cases already tested.
At this time, integration through APIs is one of the factors that our clients are looking for to make next level networks, because APIs offer benefits such as greater monitoring capabilities, better visibility and network automation.
Aruba Central has several services that can be consumed through APIs, these are classified into different groups according to their function like Monitoring, Configuration, APPRF, among others. All Aruba Central APIs are documented into Swagger.
Swagger is a documentation framework that aims to help in the processes of design, documentation and consumption of APIs services. For this reason, in the page is indicated the type of request, the url and the parameters that should be used for each transaction. After the request is made, we get a response with the information/payload requested in a JSON format (it’s represented by a pair key: value that represents each characteristic). You can see an example in the following image when requesting the URL Monitoring to get the networks that are created in the Central account.
In the image you can identify:
This understanding is critical for the development team of our clients, but it is not necessarily that we want to show across all levels in an organization, in some positions it could be better to present something more visual, more striking to show that what can do with APIs.
This was the case of a Service Provider in the region that wanted to create a customized portal via APIs, and in order to show the integration capabilities, a Dashboard was created with 6 specific use cases for monitoring; this way this project started.
We already said that it is not necessary to have previous programming knowledge to use this platform, but then how can you use it?
Although the information is going to be obtained through requests to URLs we must have an authentication mechanism to guarantee that we will have permissions level necessary to access the information, for this Aruba Central uses Access tokens. You can generate your own tokens by the option “Maintenance” - “API Gateway” - “My Apps & Tokens” - “+ Add Apps & Tokens” - “Download Token” and use the “Access_token” field
Enter the address http://arubalatam.net/ in your browser, as no request has been made, the fields with default values will appear
The Access Token contains information associated with the account in which it was generated, so, the application will take the information only from it. To enter it you must go to the top and select the icon with 4 boxes, this will open a panel in which you must select:
Note: We recommend you have the DevTools panel open in your browser (it opens when press F12), to see the requests that are being made and the response.
There are requests that depend on others, so the execution time will depend on the number of associated APs in the account. For example, to obtain the use of channels, first a request is made to obtain the provisioned APs, and then for each one it is looked at what channels are being used, therefore it could take a while. If you have the DevTools panel open in the browser (it opens when you press F12), you can see the requests and responses that are obtained in a format similar to JSON, which can be drill down to see the details.
The dashboard has 6 tiles:
We hope you can use this tool, and we are building more so that they can be used throughout the community.
Feel free to contact us if you any question.
Created by: Cesar Montaño and Dayana Bravo
Hello. Trying to access your link for http://arubalatam.net/ and it is coming up blank - any ideas? Can you share how you built that part and maybe I can do it on my own?
We are sending you the projects files, so you can run locally,
Just need to unzip the file and double click the .html file,
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 2021 Hewlett Packard Enterprise Development LPAll Rights Reserved.