Hi, I decided to test this script in order to do backup and restore but facing lots of errors: If there is anyone here that could help me out? After the change with the real org id at least the file meraki_restore is made but not complete. The restore file is empty after this line: # Edit script below this line to control what is #restored First error is this: PS C:\Users\adrdon\Documents\Python scripts\ Script som funkar\BackupAPi> python meraki-backup1. py "LAB-TESTING" Traceback (most recent call last): File "C:\Users\adrdon\Documents\Python scripts\Script som funkar\BackupAPi\meraki-backup1. py", line 209, in <module> orgid=get_org_id(meraki, args.orgName) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\adrdon\Documents\Python scripts\Script som funkar\BackupAPi\meraki-backup1. py", line 33, in get_org_id result = meraki.organizations.get_ organizations() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\meraki_sdk\controllers\organizations_ controller.py", line 50, in get_ organizations self.validate_response(_context) File "C:\Python311\Lib\site-packages\meraki_sdk\controllers\base_ controller.py", line 94, in validate_response raise APIException('HTTP response not OK.', context) meraki_sdk.exceptions. api_exception.APIException: HTTP response not OK. If I then make the change to add real org id I get this error: PS C:\Users\adrdon\Documents\Python scripts\Script som funkar\BackupAPi> python meraki-backup1. py "LAB-TESTING" Traceback (most recent call last): File "C:\Users\adrdon\Documents\Python scripts\Script som funkar\BackupAPi\meraki-backup1. py", line 220, in <module> write_admins(file,meraki, orgid); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\adrdon\Documents\Python scripts\Script som funkar\BackupAPi\meraki-backup1. py", line 84, in write_admins myOrgAdmins=meraki.admins.get _organization_admins(orgid) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\meraki_sdk\controllers\admins_controller. py", line 60, in get_organization_admins self.validate_response(_context) File "C:\Python311\Lib\site-packages\meraki_sdk\controllers\base_controller. py", line 94, in validate_response raise APIException('HTTP response not OK.', context) meraki_sdk.exceptions.api_e xception.APIException: HTTP response not OK. The change with real id conf meraki = MerakiSdkClient(os.getenv("x_cisco_meraki_api_key")) #orgid=get_org_id(meraki,args.orgName) orgid = "add real org id"
... View more