AnsweredAssumed Answered

CMX Location API questions

Question asked by dabapiwb1 on Aug 12, 2016
Latest reply on Aug 18, 2016 by dabapiwb1

Hey Everyone,

 

I'm trying to understand the workings of the CMX API and have a number of questions.  I'll start with maybe the simplest item, the API to get the count of active clients.

 

When I test the service using the 'Try it' within the apidocs utility screen or using Postman, it always returns a count of 0 clients:

 

...api/location/v2/clients/count

{
   
"deviceType": "Wireless_Client",
   
"deviceQueryString": null,
   
"count": 0
}

 

But if I use API Version 1 (using Postman only) I get what appears to be correct results:

 

...api/location/v1/clients/count

{

  "deviceType": "Wireless_Client",

  "deviceQueryString": null,

  "count": 6197

}

 

I'm using an account which is assigned only the Readonly role. Any ideas what is going on?  Note that if I try the same thing using the Cisco Sandbox (msesandbox.cisco.com:8081) both version 1 and 2 of the service seems to work fine.

 

Thanks.

 

Don

Outcomes