Developer

 View Only
last person joined: yesterday 

Expand all | Collapse all

AOS8 REST API - Getting AP information

This thread has been viewed 37 times
  • 1.  AOS8 REST API - Getting AP information

    Posted Feb 07, 2022 10:27 AM
    Hello,

    we're currently working on an AP configuration workflow and would like to attach a validation check that pulls the AP configuration from the Mobility Master (AOS 8.7)via REST API.
    I was not able to find any specific AP call in the API docs. It seems the only way to get the required information is to call the "showcommand" call and include the "show database long" command. 
    However this seems to be a lot of overhead for each AP if we plan to configure thousands of APs.
    Is there any other way to get this information via REST or at least filter the output ?

    Cheers
    Martin


  • 2.  RE: AOS8 REST API - Getting AP information

    EMPLOYEE
    Posted Feb 07, 2022 11:16 AM
    What specific information are you looking for for the Access Points?  Typically each access point receives information at the ap-group level.  There are some ap-specific stuff like the ap-name, but the vast majority is configured at the ap-group level.

    ------------------------------
    Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
    ------------------------------



  • 3.  RE: AOS8 REST API - Getting AP information

    Posted Feb 08, 2022 03:11 AM
    We just want to check if the AP provisioning process was successfully completed and the AP got configured its base config like Name, IP, AP-Group, State flags etc..
    Actually all the Information that would be required is available via "show ap database long", however it is providing the full AP list as include filters using the pipe are not working.
    A workaround would be "show ap active ap-name <name>" but it's lacking information.


  • 4.  RE: AOS8 REST API - Getting AP information

    EMPLOYEE
    Posted Feb 07, 2022 11:22 AM

    Hi Martin,

    We have showcommand API. It provides a JSON response for most of the showcommands. 

    https://developer.arubanetworks.com/aruba-aos/docs/showcommand-api

    Does this help?

    Thanks,
    Karthik



    ------------------------------
    Karthikeyan Dhandapani
    ------------------------------



  • 5.  RE: AOS8 REST API - Getting AP information

    Posted Feb 08, 2022 03:13 AM
    Hi Karthik,

    yes I tried that but just got the full list of APs back. Is there a way to filter for a specific AP like using | for the CLI ?


  • 6.  RE: AOS8 REST API - Getting AP information
    Best Answer

    EMPLOYEE
    Posted Feb 11, 2022 03:48 PM

    Hi Martin, 

    The filters using "|" won't work for the showcommand api. I would recommend you to find alternative CLI show commands that can give you desired information.

    For example: show ap details ap-name <ap-name>

    The above command when passed through showcommand api, gives a whole bunch of information for a single AP in a consumable JSON format.

    Thanks,
    Jay



    ------------------------------
    Jay Pathak
    ------------------------------



  • 7.  RE: AOS8 REST API - Getting AP information

    Posted Feb 14, 2022 01:52 AM
    Hi Jay,

    thanks for the information, that command includes what we need.