You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using your script in order to backup existing configuration, manipulate it and then upload to another device.
I'm having issues with the upload (restore function) part.
Here is the relevant part:
`params = {'access_token': apikey}
data = {"source": "upload", "scope": "global"}
files = {'file': ('random_conf.conf', config, 'text/plain')}
logging.info("attempting to upload configuration to device")
response = fgt.upload("system/config", "restore", data=data, files=files, parameters=params)`
I'm getting the following response: "403 | Forbidden: Request is missing CSRF token or administrator is missing access profile permissions."
The end device running 6.4.3 without vdom's.
Thanks,
Grigory
The text was updated successfully, but these errors were encountered:
Hi,
I'm using your script in order to backup existing configuration, manipulate it and then upload to another device.
I'm having issues with the upload (restore function) part.
Here is the relevant part:
`params = {'access_token': apikey}
data = {"source": "upload", "scope": "global"}
files = {'file': ('random_conf.conf', config, 'text/plain')}
logging.info("attempting to upload configuration to device")
response = fgt.upload("system/config", "restore", data=data, files=files, parameters=params)`
I'm getting the following response: "403 | Forbidden: Request is missing CSRF token or administrator is missing access profile permissions."
The end device running 6.4.3 without vdom's.
Thanks,
Grigory
The text was updated successfully, but these errors were encountered: