I am testing MSE (version 220.127.116.11) REST API for client tracking.
I can get JSON objects back with "/api/contextaware/v1/location/clients", but have not found out how to track a single client at a time.
The documentation says that it is doable but never says how. I have copy-and-pasted the entirety of the API documentation below.
Does anyone have any insights? I've seen my own username in the bulk return. I've tried different ways to specify my username in the API call but all either failed with 404, or I just get the giant list.
Big thanks in advance!
The location clients object returns the current location of the wireless client for the specified device ID. The ID can be MAC address, IP address, or Username.
Solved! Go to Solution.
I've done that also:
2017-09-01 10:46:31 ERROR 404: Not Found.
I have tried many combinations of things.
Basically, if I do anything like "/?key=value" (as you normally see in a HTTP GET URL with parameters), I get the entire dump. If I don't use the "?" sign, I get 404.
The example column:
...shows the query without a '?', just the value.
Certainly on the APIC-EM API which I have to hand, the following works (which has the same syntax):
Sounds like a bug to me.
Does using a MAC address like the Devnet example give a positive result?
I take my earlier response back.
Both of those actually work. Not sure what happened in my earlier tests exactly, altough I only tried my own username -- I should have tried more than that, probably -- Also, my record today has the machine's hostname in the "userName" field. Maybe that's what threw me off.
Thank you for the support!
By the way, I also did find some sample Python code in Github.