Using restapi t to register ip to DAG like xml api

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.
Palo Alto Networks Approved
Palo Alto Networks Approved
Community Expert Verified
Community Expert Verified

Using restapi t to register ip to DAG like xml api

L0 Member

Hi all,

I am trying to run automation block ip on the firewall.

The tutorial i got was for xml api but i want to do it in the rest api.

Is there a way to register the ip to a DAG using rest api.

 

Thanks for your times.

1 REPLY 1

Cyber Elite
Cyber Elite

@NTrung,

While the REST API isn't at feature parity with the XML API, you can create address objects through the REST API. Remember that you can always look at the docs from the firewall, or use the example below to go directly to the POST section for creating an address. 

Also keep in mind that the REST API can't do operational tasks like commit, so you'll still need to utilize the XML API anyways if you want this fully automated. 

 

https://$firewall/restapi-doc/#tag/objects-addresses/paths/~1restapi~1v10.2~1Objects~1Addresses/post

  • 1448 Views
  • 1 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!