In the sandbox env, when I call /api/location/v1/history/clients, I got an http error 500.
Please, see
if this thread answers your questions. Let us know if it persists.MSE 8.0 supports pagination. Pagination in the resources is done by specifying query Params “page” and “pageSize”. The default pagesize is 5000. When there is more than one page, the nextResourceURI will specify the URI to the next resource. e.g., https://msesandbox.cisco.com/api/contextaware/v1/location/history/clients?page=1&pageSize=10
For MSE 10, the /v1/ API has a max of 2000 records, and does not support pagination. The API to return the history of all clients in CMX is limited to 2000 entries. You can filter this API by time period to get less. e.g.,
https://cmxlocationsandbox.cisco.com/api/location/v1/history/clients/00:00:2a:01:00:4a?date=2017/08/31
For MSE 10, the /v2/ API will be available soon, and has a max of 2000 records per PAGE, you can send pagination requests to get more clients.
The system needs to be able to chuck out the data based either on time (preferred) or pages (v2, more load on system, less preferred). Both V1 and v2 will be maintained.
The BEST method to get MASSIVE data from CMX is to subscribe to notifications that occur whenever we calculate a new location, and to build their own history database through Northbound Notifications.
v2 allows you to get full database.
Here is the CMX REST Documentation for this query
https://cmxlocationsandbox.cisco.com/apidocs/location-api#Clients-History-API-GET-This-API-returns-history-for-all-clients
You can use date & fromHour & toHour for date=2017/08/31:
https://cmxlocationsandbox.cisco.com/api/location/v1/history/clients?date=2017/08/31&fromHour=00&toHour=23
or you can use locatedAfterTime & locatedBeforeTime for date=2017/08/31:
https://cmxlocationsandbox.cisco.com/api/location/v1/history/clients?locatedAfterTime=1504159200000&locatedBeforeTime=1504245599000
Comments
0 comments
Please sign in to leave a comment.