[prev in list] [next in list] [prev in thread] [next in thread]
List: packetfence-users
Subject: Re: [PacketFence-users] PacketFence API does not seem to be working correctly
From: Nicolas Quiniou-Briand via PacketFence-users <packetfence-users () lists ! sourceforg
Date: 2019-05-30 12:21:41
Message-ID: c862226a-f210-e33e-7402-27d58eb8ddc0 () inverse ! ca
[Download RAW message or body]
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=A0 "accept: =
> application/json" -H "Authorization: <Auth_Key>" -H=A0 "Content-Type: =
> application/json" -d =
> "{\"limit\":\"1000000\",\"query\":{\"op\":\"and\",\"values\":[{\"field\":=
\"bypass_role_id\",\"op\":\"is_not\",\"values\":[null]}]},\"with_total_coun=
t\":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
nqb@inverse.ca :: +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
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic