Anyone using Postman for API calls?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Anyone using Postman for API calls?

L3 Networker

I am new to this API stuff and I am trying to use postman to get just basic objects out of my palo. Just something as simple as "https://192.168.81.50/restapi/9.0/Objects/Addresses" the return I get it cannot get any response. I setup my api key in authentication portion of postman and selected to be added to header and I just cant get anything to work so any help would be great. 

3 REPLIES 3

L2 Linker

@Stevenjwilliams83  hope this helps you. make sure the following params are setup, also make sure PostMan settings to allow SSL certificate verification is off File> Settings>General by default this is enable if your do not have a valid SSL cert it will not allow you to connect. 

 

Side note: 

location = either vsys or panorama-pushed ( depending if you are looking for objects push from panorama or the local firewall)

vsys = vsys1 ( single vsys )

 

image.png

Still getting:

 

{
    "code"16,
    "message""Not Authenticated",
    "details": [
        {
            "@type""CauseInfo",
            "causes": [
                {
                    "code"1,
                    "module""panui_auth",
                    "description""Not Authenticated"
                }
            ]
        }
    ]
}

Do you have the API key in your headers in Postman? Using X-PAN-KEY? I have set my key with a variable, but you could also type it in directly to the "value" box if you wish. This is after you have generated a valid PAN-OS API key which is still within valid lifetime?

 

Screenshot 2022-09-12 at 17.44.31.png

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
  • 4402 Views
  • 3 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!