Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration restore issue #74

Open
Grisha-L opened this issue Dec 1, 2020 · 0 comments
Open

Configuration restore issue #74

Grisha-L opened this issue Dec 1, 2020 · 0 comments

Comments

@Grisha-L
Copy link

Grisha-L commented Dec 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant