Aruba Central APIs
Aruba Central (on-premises) supports a robust set of RESTRepresentational State Transfer. REST is a simple and stateless architecture that the web services use for providing interoperability between computer systems on the Internet. In a RESTful web service, requests made to the URI of a resource will elicit a response that may be in XML, HTML, JSON or some other defined format. APIsApplication Programming Interface. Refers to a set of functions, procedures, protocols, and tools that enable users to build application software. to enable users to build custom applications and integrate the APIs with their applications. The Aruba Central API framework uses OAuthOpen Standard for Authorization. OAuth is a token-based authorization standard that allows websites or third-party applications to access user information, without exposing the user credentials. protocol to authenticate and authorize third-party applications, and allows them to obtain secure and limited access to an Aruba Central service.
API Gateway
The Aruba Central supports the REST API for all Aruba Central services. This feature allows Aruba Central users to write custom applications, embed, or integrate the APIs with their own applications. The REST APIs support HTTPHypertext Transfer Protocol. The HTTP is an application protocol to transfer data over the web. The HTTP protocol defines how messages are formatted and transmitted, and the actions that the w servers and browsers should take in response to various commands. GETGET refers HTTP request method or an SNMP operation method. The GET HTTP request method submits data to be processed to a specified resource. The GET SNMP operation method obtains information from the Management Information Base (MIB). and POSTThe HTTP POST method is used for transferring data from a client (browser) to a server using the HTTP protocol. The POST method is considered a secure way of transferring data from a client as it carries the request parameter in the message body and does not append it in the URL string. operations by providing a specific URLUniform Resource Locator. URL is a global address used for locating web resources on the Internet. for each query. The output for these operations is returned in the JSONJavaScript Object Notation. JSON is an open-standard, language-independent, lightweight data-interchange format used to transmit data objects consisting of attribute–value pairs. JSON uses a "self-describing" text format that is easy for humans to read and write, and that can be used as a data format by any programming language. format.
feature inFor secure access to the APIs, the Aruba Central API Framework plug-in supports OAuth protocol for authentication and authorization. The access tokens provide a temporary and secure access to the APIs. The access tokens have a limited lifetime for security reasons and the applications should use the refresh API to obtain new tokens periodically (every 2 hours).
To access the API Gateway interface, you must ensure that the FQDNFully Qualified Domain Name. FQDN is a complete domain name that identifies a computer or host on the Internet. in the API Gateway URL resolves to the same IP address as the Aruba Central server.
To avoid any error in the server certification, make sure that you include the API gateway FQDN as a Subject Alternate Name (SAN) in the certificate. For more information, refer to Aruba Central (on-premises) User Guide.
The following figure illustrates the API gateway workflow for the users:
Accessing API Gateway
To access the API Gateway:
- In the
The
page is displayed. You can get new tokens and refresh old tokens. To obtain a new token application, you must set authentication parameters for a user session.
page, under , click .
Figure 1 Account Home Page with API Gateway Option Page
Important Points to Note
- The admin user profile has tab which displays all the apps and tokens generated locally in the admin user profile. This tab also displays all the apps created in the non-admin user profiles. Clicking these apps lists out all the associated tokens created for the non-admin user profile.
- Administrator role is specific to an app and hence the administrator account related RBAC library APIs and decorators must contain the application name as one of the parameters in the access verification query.
Viewing Swagger Interface
To view the APIs managed through Aruba Central, complete the following steps:
- In the
The
page with the list of published APIs is displayed.
page, under , click .
The API Gateway is apigw-<clusterFQDN> by default. Make sure that this URL is added in DNSDomain Name System. A DNS server functions as a phone book for the intranet and Internet users. It converts human-readable computer host names into IP addresses and IP addresses into host names. It stores several records for a domain name such as an address 'A' record, name server (NS), and mail exchanger (MX) records. The Address 'A' record is the most important record that is stored in a DNS server, because it provides the required IP address for a network peripheral or element. record for VIP of the Central On-Premise cluster. For example, if the Central On-Premise cluster FQDN is yodacop-vip.arubathena.com, then the API Gateway URL will be apigw-yodacop-vip.arubathena.com.
- To view the Swagger interface, click the link in the column next to the specific published API name. The documentation is displayed in a new window. Below is an example figure of the API Gateway window.
Figure 2 API Gateway Page
List of Supported APIs
Aruba Central supports the following APIs for the managed devices.
API |
Description |
---|---|
|
Gets network, client, and event details. It also allows you to manage labels and switches. |
|
Allows you to configure and retrieve the following: Groups Templates Devices |
|
Gets Top N AppRF statistics. |
|
Allows you to manage users and also allows you to configure various types of users with a specific level of access control. |
|
Gets a list of audit events and the details of an audit event. |
|
Gets device details and device statistics. |
|
Allows you to manage and retrieve subscription keys. |
|
Allows you to manage devices. |
|
Allows you to manage firmware. |
|
Gets a list of troubleshooting commands for a specific type of device. |
|
Gets notification alerts generated for events pertaining to device provisioning, configuration, and user management. |
|
Retrieves data for all sessions for a specific period of time. It also retrieves the total number of clients who made calls in the given time range and gets the Lync/Skype for Business URL for the Aruba Central cluster that you are using. |
|
Allows you to refresh the API token. |
|
Gets the list of configured reports for the given customer ID. |
|
Allows you to the following: Get list of configured WANWide Area Network. WAN is a telecommunications network or computer network that extends over a large geographical distance. health policies. Create a new WAN health policy. Delete an existing WAN health policy. Get the details of any specific WAN health policy. Update an existing WAN health policy. Get policy schedule details. Create a schedule for a WAN health policy. Get statistics for WAN health cookie generated for a site. Get WAN health test results. Get WAN health test results for a specific site. |
|
Allows you to get data for all the labels and sites. |
|
Allows you retrieve information on floor plans, location of APs, clients and rogue devices. |
For a complete list of APIs and the corresponding documentation, see https://apigw-<fqdn of the Aruba Central Instance>/swagger/apps/nms/.