cancel
Showing results for 
Search instead for 
Did you mean: 

AP Counts and Change Logger

dylan
New Contributor

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.

1 REPLY 1

Debadrita
RUCKUS Team Member

Hello Dylan, 

To get a list of the APs on the network using the vSZ API, you can use the following steps:

  • Request Headers: You need to include the following headers in your request: 

Key: Content-type & Value: application/json

  • Request Parameters: You can use query parameters to filter the results. For example, you can filter by zoneId, listSize, index, and domainId.
  • Example Request: Here is an example of how to use curl to make the request:

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.

  • Response: If the request is successful, you will receive a "Status: 200 OK" response. The response body will provide information about all the APs in the specified zone.

Thank you, 

Debadrita Paul.