Robert, have you had any luck using this? Seems like it has something to do with SSL certificates? I'm trying to run it from another server.
When I try to run it I get:
Traceback (most recent call last):
File "./export_hosts.py", line 15, in <module>
get_objects("hosts", fields)
File "/home/user/ExportObjects/get_objects.py", line 136, in get_objects
fields=fields)
File "/home/user/ExportObjects/get_objects.py", line 66, in process_args_and_login
auto_accept=unsafe_auto_accept)) or client.check_fingerprint():
File "/home/user/ExportObjects/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 535, in check_fingerprint
server_fingerprint = self.get_server_fingerprint()
File "/home/user/ExportObjects/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 427, in get_server_fingerprint
context = ssl.create_default_context()
AttributeError: 'module' object has no attribute 'create_default_context'