Skip to content

Configuration restore issue #74

@Grisha-L

Description

@Grisha-L

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions