Developer

 View Only
  • 1.  AOS8 APIs for getting Controller, APs, Clients, and links between APs and client details

    Posted 22 days ago

    Hello,

    I'm currently working with the ArubaOS 8 (AOS8) APIs and trying to retrieve details about the following:

    • Controller information

    • Access Points (APs)

    • Connected Clients

    • The relationship/link between APs and Clients

    I'm aware that the showcommand APIs can provide this information. However, I'm looking for native or dedicated API endpoints-ideally from internal monitoring or configuration APIs-that expose this data directly, without relying on the execution of CLI-based show commands.

    Does anyone know if such APIs exist in AOS8? If so, could you point me to the right endpoints or documentation?

    Any help would be greatly appreciated!

    Thanks in advance.



  • 2.  RE: AOS8 APIs for getting Controller, APs, Clients, and links between APs and client details

    Posted 21 days ago

    Hi Rushit

    You can look the developer portal for AOS 8 : https://developer.arubanetworks.com/aruba-aos/docs/about

    and also the "swagger" https://developer.arubanetworks.com/aruba-aos/reference/ (there is a swagger directly on the controller) 

    but the command is more for Get and Set Configuration, for "monitoring", you need to use showcommand

     the good point, the show command return often json result



    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------



  • 3.  RE: AOS8 APIs for getting Controller, APs, Clients, and links between APs and client details

    Posted 16 days ago

    The answer you'll git form HPE is use the developer AOS8 portal site, which was cool about two years ago but isn't being updated -- I'm guessing because of AOS10. The best I've been able to do is to use the show command API (which also allows you to run most cli commands not just show commands) and script it or an ssh Paramiko script to do the same. I use both for AOS8 management scripting. 

    url = f'https://{server}/v1/configuration/showcommand?command=show+switches+debug&UIDARUBA={sessid}'

    ap_url = f'https://{server}/v1/configuration/showcommand?command=show+ap+database+long&UIDARUBA={sessid}'

    then generate .csv files out of this.