REST API and host policies

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.

REST API and host policies

L0 Member

We just got our first PA (3060) and I was doing some research on the REST API.  What I would like to do is tie in our IP Address Management system for automation.  Like when an IP address is freed, a process would connect to the PA and remove that host's entry in any policy it may be in.  Or when we stand up a new public webserver, the process would insert that new host into the PA's https policy.  Something like that.

 

I may sound as if I don't know what I'm doing.  That's because I don't.  🙂

 

Thoughts and thanks.

 

 -Roger

 

2 REPLIES 2

L2 Linker

Hi Roger, 

 

That seems like a perfectly reasonable workflow! While maybe not addressing your questions directly, I would like to point out some tools that can make the "HOW" easier, once you figure out the "WHAT". 

 

We have developed ansible playbooks to automate a whole slew of tasks on the firewalls. Please take a look at the information I've attached and you might also find examples to suit your use case. 

Thanks,

- Vinay

 

Documentation:

http://panwansible.readthedocs.io/en/master/

 

Live page (with tutorials):  

https://live.paloaltonetworks.com/ansible

 

Private repo:

https://github.com/PaloAltoNetworks/ansible-pan

 

Tutorials: 

https://www.youtube.com/watch?v=KozIozKhxAo&t=114s

https://www.youtube.com/watch?v=0OnKIcUCKJg

 

Ansible official: 

https://www.ansible.com/integrations/networks/palo-alto

http://docs.ansible.com/ansible/list_of_network_modules.html#pano

 

Hey Vinay!   Thanks for your response.   I was hoping for a more REST'ish solution.  My co-worker is an Ansible freak and me using Ansible would make him too happy.  Can't have that.  🙂

 

Nonetheless, I'll look at the links you sent.  If Ansible is the best way to accomplish what I want, then Ansible it will be.

 

 -Roger

 

 

 

  • 2181 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!