05-21-2025 07:17 AM
Good morning,
I'm currently trying to write a script (preferably Python) that first counts the number of APs on my network. Next, every time this network is changed, I'd like to re-run the count script and log whether there are still the same number of APs on the network or not. I've looked through the Virtual SmartZone API and haven't found much on how to get a list of the APs on the network, I've only found requests that retrieve the list of zones.
Any help would be greatly appreciated. Thank you.
07-24-2025 05:05 AM
Hello Dylan,
To get a list of the APs on the network using the vSZ API, you can use the following steps:
Key: Content-type & Value: application/json
curl -b /tmp/headers.txt -k -X GET -H "Content-type: application/json" 'https://192.168.1.x:7443/api/public/v3_0/aps?zoneId=e66564d6-af39-4b41-9b97-4032a20cd5e3'
In this example, replace 192.168.1.x with the IP address of your vSZ and e66564d6-af39-4b41-9b97-4032a20cd5e3 with the appropriate zoneId.
Thank you,
Debadrita Paul.
