cancel
Showing results for 
Search instead for 
Did you mean: 

Application data via API

ygorsm
New Contributor

Hello,

My company is using SmartZone Virtual High Scale version 5.2.2.0.1563. I am trying to set up an API call that pulls application traffic via WLAN or Access Point. I have already searched all the API documentation and found nothing related to this information, I would really like to be able to extract this information, as I collect a lot of information from my controller to export to Dashboards in Grafana.
Here are some examples:

ygorsm_1-1741280929089.png

With Ruckus AI

ygorsm_2-1741280983428.png

 



 

1 REPLY 1

ygorsm
New Contributor

I managed to solve the problem by debugging in DevTools, where I was able to find a URL that is not in the documentation. If you use the URL: https://{IP}:{PORT}/wsg/api/public/v9_1/trafficAnalysis/client/app/ap

Payload: { "filters": [ { "type": "DOMAIN", "value": "8b2081d5-9662-40d9-a3db-2a3cf4dde3f7" } ], "extraFilters": [ { "type": "RADIOID", "value": "2.4G+5G" }, ], "extraNotFilters": [ { "type": "MONITORINGENABLED", "value": "true" } ], "attributes": [ "tx+rx"
],
"extraTimeRange": {
"start": 1741278899518,
"end": 1741282499518,
"interval": 180000
},
"options": {},
"limit": 10,
"page": 1
}
response = requests.post(URL, json=payload, params=PARAMS, verify=False)

if response.status_code == 200:
data = response.json()
for data in data.get('list', []):
site = data.get('key')
traffic = data.get('value')
traffic_convert = convert_bytes(traffic)

print(f"Site: {site}, Traffic: {traffic_convert}")

Iran get information about application traffic