cancel
Showing results for 
Search instead for 
Did you mean: 

Unleashed API

ms
New Contributor II

Is there published or unpublished API for Unleashed?

I'm looking for the MACs from cli command "show current-active-clients all". 

1 ACCEPTED SOLUTION

mmMOLINARI
RUCKUS Team Member

Totally agree. I just created a new repo on GitHub and added the Unleashed postman collection: https://github.com/commscope-ruckus/RUCKUS-Unleashed

You start with the call to login using the unleashed credentials, then retrieve a CSRF token, and use it in the header for subsequent calls.

 

 

View solution in original post

22 REPLIES 22

What actions are you wanting to take, from what triggers? and what platform are you on (I'm assuming you have some system you want to integrate with Unleashed, but maybe you are trying to do everything inside Unleashed)?

Assuming the builtin functionality, or SNMP & syslog integrations aren't suitable... I've got quite good coverage of Unleashed query functionality in aioruckus, and I've added the actions I needed (block/unblock clients, enable/disable WLANs, enable/disable AP LEDs, reboot APs, perform backups).

If you need extra actions or queries then I can add them quite easily.

Or if you need something other than python then I might also be able to help (e.g. I have JavaScript & PowerShell APIs I've been tinkering with, or the python API can be wrapped in shell scripts).

MR96
New Contributor

Hi, 

This is an older thread, but figured I would see if this might be able to help me out.

Currently for reporting, I am trying to pull information from all AP's on our network. We need to be able to pull the Serial Numbers, MAC addresses, and the IP they are using at the time of the report. I can get most of this using SNMP, however, in the unleashed setup it will only give us the Serial Number of the master AP. Would this Python API be able to help us out? 

mmMOLINARI
RUCKUS Team Member

Yes, the ajax/xml API in ZD and Unleashed will give you all sorts of details from the AP, including mac address, serial number and ip address. Here is a response example for the call to get AP statistics:

<ap x-psk="" mac="6c:aa:b3:12:8a:60" tunnel-mode="L3" ap-name="RuckusAP" devname="RuckusAP" max-client="100" model="r700" serial-number="121403000450" vid-pid="" usb-version="" hardware-version="28.0.0" strong-cert="normal" map-id="0" x="0" y="0" gps="" firmware-version="9.8.1.0.114" as-is="true" as-is-ipv6="true" build-version="114" ip="172.18.135.8" ip-type="DHCP" netmask="255.255.255.0" gateway="172.18.135.254" dns1="172.18.100.35" dns2="172.18.100.45" by-dhcp="true" external-ip="172.18.135.8" external-port="12223" bonjour-check="false" bonjour-policy-name="" by-autoconfig="1" ipv6-type="IP6-Autoconfig" ipv6="fc00::1" ipv6-plen="7" ipv6_gateway="" ipmode="3" l3_conn_type="IPv4" ext-family="2" ext-ipv6="::7469:6d65:0:0:256c:7500" mgmt-vlan-id="1" state="1" sys-pmtu="1500" current-temperature="unavailable" current-temperature-time="unavailable" lifetime-max-temperature="unavailable" lifetime-max-temperature-time="unavailable" lifetime-min-temperature="unavailable" lifetime-min-temperature-time="unavailable" num-vap="4" num-sta="0" assoc-stas="0" num-neighbors="0" num-rogue="0" uptime="330768" uptime-updatetime="1453081961" last-seen="1453081946" last-oclock-serviceup-time="3600" last-seen-by-mesh="0" last-config="0" registered="0" firstAssoc="1452764309" amount-connected-time="329286"