Hi dlietz,
As this is from a customer, I cannot share the script itself but let me describe the workflow, so that you get an understanding of what they do.
They enable or disable the SSID on a specific IAP cluster (not for all) so they need to search for that IAP cluster by using the search API in AirWave. From that search, they get the device ID form the IAP Cluster and can now change some variables for that IAP. One variable is used in if condition in the IAP template like this:
%if custom_variable_3=true%
wlan access-rule someSSID
rule any any match any any any permit
wlan ssid-profile someSSID
enable
type employee
essid someSSID
wpa-passphrase %custom_variable_2%
opmode wpa2-psk-aes
max-authentication-failures 0
vlan 108
auth-server InternalServer
rf-band 2.4GHz
captive-portal disable
dtim-period 1
inactivity-timeout 1000
broadcast-filter arp
dmo-channel-utilization-threshold 90
local-probe-req-thresh 0
max-clients-threshold 64
%endif%
So, depending on "custom_variable_3" (true or false), the SSID is broadcasted or not.
I think this could also work for you.
You should just look at the AirWave API documentation, which is available here:
https://[AirWave-IP]/static/APIGuide/APIGuide.htmI
BR
Florian