XDR API for Policy Management

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

XDR API for Policy Management

L0 Member

Is there an API in XDR for Policy Management?

I'm trying to get the list of policies, profiles and their rules.

RishitShah_0-1703167831594.png

There is /public_api/v1/endpoints/get_policy (Get Policy • Cortex XDR REST API • Reader • Palo Alto Networks documentation portal)

However, this just gives the Policy Name for a specific Endpoint.  

4 REPLIES 4

L5 Sessionator

Hi @RishitShah, thanks for reaching us using the Live Community.

The public API is limited for the information you need.

But, the console XDR console itself work with API calls to the backend, so you can pickup the API URL and headers from the requests when you access to any location.

For example, opening "Policy Rules" with the browser inspect enabled shows the following entry name:

jmazzeo_0-1703266040806.png

If you select it, look at the headers and you can copy them to the platform needed to do the query. This a screenshot from my Postman, not all the headers are needed, you can play there:

jmazzeo_1-1703266211581.png

You can do this same API workaround with any section of the console.

 

NOTE: this will work only if you have a current web session to the console.

 

If this works for you, please mark this question as the solution.

JM

L0 Member

Hi @jmazzeo I tried the approach you suggested, however, in response I receive a Sign in Page.

RishitShah_0-1704878505894.png

 

I too got sign in Page, Any solution

L5 Sessionator

This is just a workaround, take a look at the headers I have used in my postman screenshot. Anyway many months an versions have been rolled out for the XDR product, I haven't tested it again.

JM
  • 817 Views
  • 4 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!