Skip to content

why i got 400??? #719

Answered by jshcodes
NSH531 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @NSH531 -

Could you provide us the error response and a little more detail regarding what you're trying to return? (It appears to be a dictionary containing the full result from multiple API operations.)

Just guessing, but I expect one of the payloads is malformed, potentially this one:

j=falconpy.APIHarness(client_id=client_id,client_secret=secret).command("query_hosts",filter='DEVICE_ID')

The correct syntax for this filter would be:

j=falconpy.APIHarness(client_id=client_id,client_secret=secret).command("query_hosts",filter="device_id:'DEVICE_ID'")

It also appears we are repeatedly recreating the Uber Class object, this shouldn't be required and is round tripping to the API unnecessa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
API usage General API usage issues and questions hosts Hosts or Host Groups issues and questions SDK usage General SDK usage issues and questions
2 participants