Hello Ben,

On 2019-05-28 3:55 p.m., Brenek, Benjamin via PacketFence-users wrote:
curl -k -X POST "https://packetfence.domain.com:9999/api/v1/nodes/search"; -H  "accept: application/json" -H "Authorization: <Auth_Key>" -H  "Content-Type: application/json" -d "{\"limit\":\"1000000\",\"query\":{\"op\":\"and\",\"values\":[{\"field\":\"bypass_role_id\",\"op\":\"is_not\",\"values\":[null]}]},\"with_total_count\":true}"

You should replace `is_not` by `not_equals`.
If you are running PacketFence v9, you can use your web browser console to see how web admin call the API and find correct parameters.

Another tip: use httpie [0] in place of curl to save time.

[0] https://httpie.org/
--
Nicolas Quiniou-Briand
[email protected]  ::  +1.514.447.4918 *140  ::  https://inverse.ca
Inverse inc. :: Leaders behind SOGo (https://sogo.nu), PacketFence (https://packetfence.org) and Fingerbank (http://fingerbank.org)


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to