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
------------------------------
Original Message:
Sent: Feb 08, 2022 03:13 AM
From: Martin Zipperer
Subject: AOS8 REST API - Getting AP information
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 ?
Original Message:
Sent: Feb 07, 2022 11:22 AM
From: Karthikeyan Dhandapani
Subject: AOS8 REST API - Getting AP information
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
Original Message:
Sent: Feb 07, 2022 10:26 AM
From: Martin Zipperer
Subject: AOS8 REST API - Getting AP information
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