cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
26502
Views
0
Helpful
27
Replies

API Dashboard "Return a client" GET doesn't works

antoniogrillo
Frequent Visitor
Frequent Visitor

Hi,

try to use postman for this GET via Dashboard API but doesn't works, some ideas?

GET Return a client

https://api.meraki.com/api/v0/networks/{{networkId}}/clients/{{clientMac}}
Return the client associated with the given identifier. This endpoint will lookup by client ID or either the MAC or IP depending on whether the network uses Track-by-IP.

All the GET without "clientMac" variable works perfectly.

https://documenter.getpostman.com/view/897512/meraki-dashboard-api/2To9xm#intro

Some ideas?

1 Accepted Solution

Accepted Solutions

I just called Meraki support and they informed me that they aren't aware of any method to grant access to the PII api endpoints to North American based organizations.

View solution in original post

27 Replies 27

hody.crouch
Level 7
Level 7

I take that back. I can't get this new API to work either.

I've had success in the past with the similar API

/api/v0/devices/[serial]/clients?timespan=7200

This returns all devices connected to a specified device. You would call this API for each device in a network.

@hody.crouch

Yes, this work also for me, in fact there isn't client variable.

I need with a single call GET identify a mac-address client if i know its IP Address.

If i search in a client list i need a DB for scanning the data...

psteinbe
Level 3
Level 3

I haven't had an issue with new the API call. Can you post your results?

This is the get request from my Postman "{{baseUrl}}/networks/{{networkId}}/clients/{{clientMac}}"

@psteinbe

for you works also if you put the IP address in clientmac variable?

@antoniogrillo

I don't track my clients by IP. You need to turn that on.

see documentation:

https://documentation.meraki.com/MX-Z/Monitoring_and_Reporting/Client_Tracking_Options

FYI, I tried to test tracking by IP and got the following error:

  • Tracking clients by IP addresses is not supported in a combined network and will break client tracking data.

I read that:
"Return the client associated with the given identifier. This endpoint will lookup by client ID or either the MAC or IP depending on whether the network uses Track-by-IP."

the way I read this:
1) We should always be able to poll for the client ID
2) poll via mac or IP, is based on Client Tracking.

I'm tracking by Mac and not IP as well, so I should be able to do a call with the client Mac address and have that return. It does not.

I should be always able to make the call and use the client ID and have that return, it does not.

HTH,
Steve

------------------------------------------------------------------------------------------------
Please remember to rate useful posts, and mark questions as answered

image.jpeg

may be the call function isn't activate yet ??

The clientMac has to be in the same networkId. I have searched for a mac that was not in the network I had set in my variables and it returned a 404.

@psteinbe

Hi, the clients are in the same networkId, i put the IP from this other GET call....

image.jpeg

@antoniogrillo

Can you show me your Security Appliance/Addressing & Vlans page?image.jpeg

@psteinbe it shouldn't matter what your tracking is set to, as long as you are calling the correct element. If you are tracking by Mac, you call the client Mac. if you are tracking by IP, you call the client IP. but you should *always* be able to call the client ID. I just tested this both with track Mac and track IP and I get a 404 error either way I try to test it.
HTH,
Steve

------------------------------------------------------------------------------------------------
Please remember to rate useful posts, and mark questions as answered

I've reached out to the SE that posted the meraki.py on Github to see if he can weigh in on this as well.
HTH,
Steve

------------------------------------------------------------------------------------------------
Please remember to rate useful posts, and mark questions as answered

Works both ways for me.

image.jpegimage.jpeg