- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-08-2024 10:51 PM
I am trying to add static routes to the PaloAlto device using Panorama REST API, I see we don't have direct option to add the static routes, all that we have to do is to edit the Virtual Router(a bucket where Static route option resides). Unlike RestAPI, Ansible has a option to add the static route directly(validated working).
Any option/shortcut to add Static Route via Rest API?
02-09-2024 06:54 AM
Is this what you're looking for? If you webpage to your firewall at https://IPAddress/resetpai-doc you'll get a full list.
02-11-2024 11:20 PM
Thank you for the suggestion @Claw4609, I had gone through the recommended page before I posted this. There is a ansible module for Panos(paloaltonetworks.panos_static_route) which executes the job clean. I simply want to add the static route, but the Rest API allows me to edit the Virtual Routers(Virtual routers --> Routing table --> Static Route), where I had to collect the previous static route entries, store it somewhere and while editing the Virtual router, call the stored routes, append it with new entries.
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!