2019-12-03 20:27:13 +00:00
|
|
|
from servicebase import ServiceBase
|
|
|
|
|
|
|
|
class ServiceDelegate(ServiceBase) :
|
2019-12-04 19:00:50 +00:00
|
|
|
def get_arguments(cls) :
|
2019-12-03 20:27:13 +00:00
|
|
|
"""Returns an array of information used to construct an argumentparser argument."""
|
|
|
|
# [ <short flag>,<unix flag>,<arg type>,<description> ]
|
2020-05-22 18:28:13 +00:00
|
|
|
# Example return: [ '-n', '--net', 'store_true', 'Return network information about the subject' ]
|
|
|
|
return ['-fw', '--rules', 'store_true', 'Return Firewall rules relating to the subject']
|
2019-12-03 20:27:13 +00:00
|
|
|
|
|
|
|
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
|