cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1214
Views
0
Helpful
1
Replies

looking to query current or last associated AP based on MAC

mbausenwein
Level 1
Level 1

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?

 

1 Accepted Solution

Accepted Solutions

Alexander Onnikov
Cisco Employee
Cisco Employee
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

Alexander Onnikov
Cisco Employee
Cisco Employee
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"
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: