How to find Client policy

Solved
Adrian4
Head in the Cloud

How to find Client policy

Hello,

Int he dashboard if you go to "clients" and then drill down into an individual client, there is a section for "policy" where you can choose various policies for that specific client.

I need to create a API report that will give me a list of all clients and the policy they are using.

I tried /networks/{networkId}/clients 

which returns (among other things) "adaptivePolicyGroup" and "groupPolicy8021x" but neither of these seem to be the particular policy im looking for as these all return blank and thee should always be a value as the default policy value is "normal"


Any ideas where to look?

cheers

Adrian4_0-1723631575727.png

 

1 Accepted Solution
Adrian4
Head in the Cloud

hot damn lol

luckily I just noticed the client list in the dashboard has a policy column so i can just grab a  csv from there. At the moment I only need 3 networks so its ok.

Hopefully I wont ever need to do a lot of networks at once 😛

View solution in original post

6 Replies 6
PhilipDAth
Kind of a big deal
Kind of a big deal
Adrian4
Head in the Cloud

cheers for the info!, but holy crap do I have to do a call for every single client ?!? (there are thousands of them)

PhilipDAth
Kind of a big deal
Kind of a big deal

Yes.

 

I have scripts that have have to do tens of thouands of API calls because of this.

 

One. For. Every. Client.

Adrian4
Head in the Cloud

hot damn lol

luckily I just noticed the client list in the dashboard has a policy column so i can just grab a  csv from there. At the moment I only need 3 networks so its ok.

Hopefully I wont ever need to do a lot of networks at once 😛

John_on_API
Meraki Employee
Meraki Employee

No, you can run these API operations instead. I like the one in Early Access a little better:

 

GA: https://developer.cisco.com/meraki/api-v1/get-network-policies-by-client/

EA: https://developer.cisco.com/meraki/api-v1/get-organization-policies-assignments-by-client/

 

FYI @PhilipDAth 

PhilipDAth
Kind of a big deal
Kind of a big deal

OMG.  This API call in particular is going to save a LOT of time in some of my scripts.

https://developer.cisco.com/meraki/api-v1/get-network-policies-by-client/

 

Get notified when there are additional replies to this discussion.