Cortex XDR Get Incident API function 'hosts':None

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cortex XDR Get Incident API function 'hosts':None

L0 Member

I'm currently testing the api for Cortex XDR, in particular the 'get_all_incidents' function under '/public_api/v1/incidents/get_incidents' url.

Reference : https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR-REST-API/Get-all-Incidents

 

While testing, i realized while testing the 'hosts' field is empty, while in the reference page, it mentions <HOST ID>. Is this a bug or it is supposed to be populated if there's more than 2 host in an incident?

 

Testing Results

WKhoo001823_1-1745914049548.png

WKhoo001823_3-1745914126725.png

Reference Page

WKhoo001823_0-1745914000945.png

 

1 REPLY 1

L4 Transporter

Maybe it's a permissions issue. When you change them, the data you get can change too. I had a similar problem, and it was due to permissions.

 

If this post answers your question, please mark it as the solution.




Best regards
Tiago Marques
  • 222 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!