Create a Post
Showing results for 
Search instead for 
Did you mean: 

Re: Python tool for exporting/importing a policy package or parts of it

Hello Inbar.

I am using python 2.7.13 for windows and R80 without jumbotake.

When I trie to use your scripts... I get somethink like:

C:\Users\administrador\Desktop\import_export_package> -m Standard

Trying to get login credentials...

Got the following login credentials:

    Username: admin

    Password: **********

    Session ID: None

Traceback (most recent call last):

  File "C:\Users\administrador\Desktop\import_export_package\", line 30, in <module>

    _, _, user_created, client, args = process_args_and_login(client=client, parser=parser, showparameter="package")

  File "C:\Users\administrador\Desktop\import_export_package\import_export_objects\", line 66, in process_args_and_login

    login(client, management, domain, username, password, session_id)

  File "C:\Users\administrador\Desktop\import_export_package\import_export_objects\", line 698, in login

    login_res = client.login(management, username, password, domain=domain)

  File "C:\Users\administrador\Desktop\import_export_package\mgmt_api_lib\", line 140, in login

    self.api_version =["api-server-version"]

KeyError: 'api-server-version'

Which can be te problem?

Thanks in advance.

0 Replies