- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-07-2022 03:48 AM
Hi Cortex API community experts,
I am trying to generate a monthly report for various areas of the business for a list of Incidents raised during the month for their respective servers. I was hoping that the "get_incidents" api could help with this. As I could pass in predefinded queries with a list of servers for each department.
API:
https://{{url}}/public_api/v1/incidents/get_incidents/
Body:
09-12-2022 04:31 AM
Hi @MichaelEdwards2, I would ask this one in the Cortex area: https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/bd-p/Analytics_Discussions
11-22-2022 12:10 AM
Hi Michael,
as the error says, the query filter should contain a "string", you are sending an "array". The API documentation is not always very clear...(https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-api/cortex-xdr-apis/incident-manageme...)
Change your query request to:
Body:
and it should work...
Cheers
Phil
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!