07-14-2016 11:15 AM
I looking for some guidance on putting together a rest api call to provide a total client count for a wlan.
i have tested:
curl -k -u username:password "https://1x.x.x/webacs/api/v2/data/ClientCounts/"
and got back un usable data.
<queryResponse type="ClientCounts" rootUrl="https://1x.x.x/webacs/api/v2/data" requestUrl="https://1x.x.x/webacs/api/v2/data/ClientCounts/" responseType="listEntityIds" count="8023" first="0" last="99">
<entityId url="https://1x.x.x/webacs/api/v2/data/ClientCounts/13794898147" type="ClientCounts">13794898147</entityId>
<entityId url="https://1x.x.x/webacs/api/v2/data/ClientCounts/13794898148" type="ClientCounts">13794898148</entityId>
<entityId url="https://1x.x.x/webacs/api/v2/data/ClientCounts/13794898149" type="ClientCounts">13794898149</entityId>
<entityId url="https://1x.x.xwebacs/api/v2/data/ClientCounts/13794898150" type="ClientCounts">13794898150</entityId>
My goal is to have another product pull client count per wlan from Cisco Prime.
07-19-2016 01:32 PM
No tac support for request SR 680638082
07-20-2016 06:12 AM
after looking over the doc and other examples on the forum i was able to put together the rest api that give me the data i am looking for.
https://x.x.x.x/webacs/api/v2/data/ClientsV2?.full=true&ssid=name&status=ASSOCIATED
<?xml version="1.0" ?>
<queryResponse type="ClientsV2" rootUrl="https://x.x.x.x/webacs/api/v2/data" requestUrl="https://x.x.x.x/webacs/api/v2/data/ClientsV2?.full=true&ssid=name&status=ASSOCIATED" responseType="listEntityInstances" count="222" first="0" last="99">
<entity url="https://x.x.x.x/webacs/api/v2/data/ClientsV2/9274551739" type="ClientsV2" dtoType="clientsV2DTO">
<clientsDTO id="9274551739" displayName="9274551739">
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide