Hi All,

I am trying to get a list of all PacketFence nodes that have a Bypass role set, 
however I am running into an issue with the API.

I am running the following curl command to get the list of nodes:

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}"

However, when I run this command I get the following error back:
{"errors":[],"message":"is_not is not valid"}

Any help would be appreciated.

Thank you,

Ben


Our employees' reviews made us a Best Place to 
Work<https://www.glassdoor.com/survey/start_input.htm?showSurvey=REVIEWS&employerId=153924&contentOriginHook=PAGE_SRCH_COMPANIES>
 in 2018 &2019!
Spread the word and earn a bonus by referring a 
friend.<http://hs.bayada.com/talent-scout-ilwid?utm_source=email%20signature&utm_medium=email&utm_campaign=Glassdoor%20Award>

[Compassion, Excellence, Reliability]<http://bhhc.co/BAYemail_site>

[Facebook]<http://bhhc.co/BAYemail_fb> [Twitter] <http://bhhc.co/BAYemail_tw>  
[LinkedIn] <http://bhhc.co/BAYemail_LI>  [YouTube] <http://bhhc.co/BAYemail_yt> 
 [Bayada] <http://bhhc.co/BAYemail_site>

CONFIDENTIALITY NOTICE: This email may contain information belonging to BAYADA 
and is protected by law. Do not forward, copy, or otherwise disclose to anyone 
unless permitted by BAYADA or required by law. If you are not the intended 
recipient, please notify the sender immediately.
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to