How to register IP address to dynamic address group thru 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.

How to register IP address to dynamic address group thru API ?

L3 Networker

Is there a way to register IP address to dynamic address group thru API ? So far I use pandevice script dyn_address_group.py

I am trying to tag existing IP 10.34.20.94 on firewall 10.43.34.34 (PANOS 7.1.7) with tag General , getting error below:

$ python dyn_address_group.py 10.43.34.34 admin 'password' 10.34.20.94 General
usage: dyn_address_group.py [-h] [-v] [-q] [-r REGISTER] [-u UNREGISTER] [-l]
                            [-c]
                            hostname username password ip
dyn_address_group.py: error: unrecognized arguments: General

I am using pandevice (0.3.5)

1 accepted solution

Accepted Solutions

L4 Transporter

Answered in the corresponding GitHub issue:  https://github.com/PaloAltoNetworks/pandevice/issues/47

 

The answer was a combination of missing the `-r` in the command above, and an issue in the script which is now fixed.

View solution in original post

1 REPLY 1

L4 Transporter

Answered in the corresponding GitHub issue:  https://github.com/PaloAltoNetworks/pandevice/issues/47

 

The answer was a combination of missing the `-r` in the command above, and an issue in the script which is now fixed.

  • 1 accepted solution
  • 2861 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!