cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

124
Views
0
Helpful
1
Replies
Beginner

looking to query current or last associated AP based on MAC

I am trying to run a query for wifi phones that are not currently associated to see where they were last seen.

 

C:\Downloads\curl\bin>curl -k -u username:password "https://myserverwcs.corp.phcs.org/w
ebacs/api/v4/data/ClientDetails?macAddress=%224C:00:82:85:72:99%22"
<?xml version="1.0" ?>
<queryResponse last="0" first="0" count="1" type="ClientDetails" responseType="l
istEntityIds" requestUrl="https://wcs.corp.phcs.org/webacs/api/v4/data/ClientDet
ails?macAddress=&amp;quot;4C:00:82:85:72:99&amp;quot;" rootUrl="https://wcs.corp
.phcs.org/webacs/api/v4/data" domain="ROOT-DOMAIN">
<entityId type="ClientDetails" url="https://wcs.corp.phcs.org/webacs/api/v4/da
ta/ClientDetails/5247202893">5247202893</entityId>
</queryResponse>
C:\Downloads\curl\bin>

 

This seems to return the url to run another query with the entity id.  Is there a way to get the APname on the first query and not have to run a second one?

 

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: looking to query current or last associated AP based on MAC

Hello,

Yes you can add ".full=true" query parameter to your query string to fetch data in the same query. Your query string will look like this: "https://myserverwcs.corp.phcs.org/w
ebacs/api/v4/data/ClientDetails?.full=true&macAddress=%224C:00:82:85:72:99%22"

View solution in original post

1 REPLY 1
Cisco Employee

Re: looking to query current or last associated AP based on MAC

Hello,

Yes you can add ".full=true" query parameter to your query string to fetch data in the same query. Your query string will look like this: "https://myserverwcs.corp.phcs.org/w
ebacs/api/v4/data/ClientDetails?.full=true&macAddress=%224C:00:82:85:72:99%22"

View solution in original post

Content for Community-Ad
FusionCharts will render here