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

Reply
L3 Networker

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

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)

L4 Transporter

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

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.

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 Live Community as a whole!

The Live Community thanks you for your participation!