To generate an API key you will need the following:
The firewall's hostname or IP address
The firewall's admin username
The firewall's admin password
First, create Palo Alto Networks Firewall credential in Tines
Login to your Tines tenant
Navigate to the team that will be using the API and click "Credentials"
Click "+ New Credential" and select "Text"
Input the values for the Palo Alto Networks Firewall credential
Name: PAN Firewall Admin Password
Description: Optional
Value: Your admin password
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains.
Access: What other teams can also use the API
Click "Save"
Next, generate a Palo Alto Networks Firewall API Key in Tines
Create a new story
Paste the following action onto the storyboard, replace
firewall_hostname
and<user>
with the firewall's hostname and admin username, then run the action
{"standardLibVersion":"42","actionRuntimeVersion":"6","agents":[{"disabled":false,"name":"Generate PAN Firewall API Key","description":"Created from cURL command","options":"{\"url\":\"https://<<firewall_hostname>>/api/?type=keygen\",\"method\":\"post\",\"content_type\":\"application/x-www-form-urlencoded\",\"payload\":{\"password\":\"<<CREDENTIAL.pan_firewall_admin_password>>\",\"user\":\"<user>\"}}","position":{"x":1995,"y":375},"type":"httpRequest","timeSavedUnit":"minutes","timeSavedValue":0,"monitorAllEvents":false,"monitorFailures":false,"monitorNoEventsEmitted":null,"recordType":null,"recordWriters":[],"form":null,"cardIconName":null,"createdFromTemplateGuid":null,"createdFromTemplateVersion":null,"originStoryIdentifier":"cloud:aa47f8215c6f30a0dcdb2a36a9f4168e:cf6e110a4849cd0f6b69a3d39da8f81a"}],"links":[],"diagramNotes":[]}
Copy the
key
value from the response:
Lastly, create Palo Alto Networks Firewall credential in Tines
Navigate to the team that will be using the API and click "Credentials"
Click "+ New Credential" and select "Text"
Input the values for the Palo Alto Networks Firewall credential
Name: PAN Firewall API Key
Description: Optional
Value: Your API Key
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains.
Access: What other teams can also use the API
Click "Save"
For more on creating credentials in Tines, click here.
You can find a selection of Palo Alto Networks Firewall stories in the story library