Inquiry about API key

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.

Inquiry about API key

L3 Networker
In order to receive the Palo Alto Firewall api key
I checked " curl -k -X GET 'https://<fw-ip>/api/?type=keygen&user=<id>&password=<password>' " in the docs
but where is this command have to enter it?

https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/get-started-with-the-pan-os-xml-api...

2 REPLIES 2

Cyber Elite
Cyber Elite

@qmso475,

This example is simply given using cURL since it's the defacto standard across most operating systems; you would simply copy and paste that request, replacing everything in <> with their actual values. Alternatively you can just go to the actual URL from your browser.

Community Team Member

Hi @qmso475 ,

 

As @BPry  mentioned you can just go to the url using your browser. 

Drop the curl command and go to https://<fw-ip>/api/?type=keygen&user=<id>&password=<password> directly using your preferred browser to get the key:

 

kiwi_3-1679480795373.png

 

If you use the curl settings then you can use windows cmd or mac terminal to execute the command:

 

kiwi_2-1679480714256.png

 

I hope this can help you.

Kind regards,

-Kiwi.

 

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.
  • 915 Views
  • 2 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!