Repo for some basic python scripts for pulling and printing data from Ruckus SmartZone's API.
Please note the following: I am new to both python and git. I am writing these as a training exercise for myself and I have not written code for an extended period. I have tested this against a SZ100 cluster of 2 running 3.6.2. These scripts will not work in the current state with vSZ-H and will only work correctly with vSZ-E. I would recommend using a read-only account.
baseurl
- "https://general.direction.com:8443/wsg/api/public/v6_1/" #replace "general.direction.com" with either the host name or IP of a member of the cluster
szusername
- String
szpassword
- String
The API documentation is below for reference:
Ruckus documentation for version 3.6.2
This will return all the configured zones on the cluster and print them out. The script will output a list of lists called cleaned_zones
.
Format of the lists are:
[name_of_zone,zone_id]
This script builds on login_getzone.py
to take the cleaned_zones
list of lists and produce a list of lists called cleaned_all_zone_wlan
that also includes the WLAN names and ids. Please note this is the WLAN name NOT the SSID.
Format of the lists are:
[name_of_zone,zone_id,name_of_WLAN,WLAN_id]