16 lines
729 B
Python
16 lines
729 B
Python
from servicebase import ServiceBase
|
|
|
|
class ServiceDelegate(ServiceBase) :
|
|
def get_arguments(cls) :
|
|
"""Returns an array of information used to construct an argumentparser argument."""
|
|
# [ <short flag>,<unix flag>,<arg type>,<description> ]
|
|
# Example return: [ '-n', '--net', 'store_true', "Return network information about the subject" ]
|
|
return ['-fw', '--rules', 'store_true', "Return Firewall rules relating to the subject"]
|
|
|
|
def get_pa_auth_header(host,username,password) :
|
|
"""Given authentication information, return the authenticated header for use in REST requests to a Palo Alto device."""
|
|
pass
|
|
def get_pa_for_dc(dc) :
|
|
"""Given a datacenter, return the next Palo Alto device for that datacenter."""
|
|
pass
|