04-27-2022 04:57 AM
I have a single network, and I want to get client usage history for each client in that network. I first get all clients, and then usage history with endpoint getNetworkClientsUsageHistories.
It works for single clients in both plain request (Postman) and Python SDK for Meraki Dashboard. However, it does not work for multiple clients and I get:
{
"errors": [
"Invalid client key"
]
}Solved! Go to Solution.
04-27-2022 05:06 AM
Just tried it and it worked like a charm.
https://nxxx.meraki.com/api/v1/networks/{netID}/clients/usageHistories?clients=kxxxxx,kxxxxx
Output contained the 2 requested clients.
04-27-2022 05:06 AM
Just tried it and it worked like a charm.
https://nxxx.meraki.com/api/v1/networks/{netID}/clients/usageHistories?clients=kxxxxx,kxxxxx
Output contained the 2 requested clients.
04-28-2022 03:31 AM
Thank you, I was using wrong URL in Postman!
However, I still get errors when using over 1000 client IDs in Python SDK, and 502 error in some cases. Those are for other questions, though.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide