Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Shaimaa
Participant
Jump to solution

Export/import policy package error: KeyError: 'sid'

Hello,

I'm trying to use the python tool export/import policy package, i'm getting the following error:

Traceback (most recent call last):
File "..\CKP_outil_export-import\ExportImportPolicyPackage-master\import_expor
t_package.py", line 41, in <module>
payload=payload)
File "..\Python379\lib\site-packages\cpapi\mgmt_api.py", line 211, in login
return self._common_login_logic(credentials, continue_last_session, domain,
read_only, payload)
File "..\Python379\lib\site-packages\cpapi\mgmt_api.py", line 168, in _common_
login_logic
self.sid = login_res.data["sid"]
KeyError: 'sid'

I use the 1st option (1. Enter user credentials manually), I don't know whey it's searching for the sid

Is there a specific configuration to do in checkpoint side? I used two different users (admin and another user but i have the same problem)

Thanks in advance for your help.

0 Kudos
1 Solution

Accepted Solutions
Stuart_Green1
Employee
Employee

The SID will be used internally, that's basically your token for connecting to the API. Worth checking to see if you can use mgmt_cli locally on your management server with those credentials. If that works out ok - check that your API settings allow connections from the host you're running the script on.

View solution in original post

(1)
1 Reply
Stuart_Green1
Employee
Employee

The SID will be used internally, that's basically your token for connecting to the API. Worth checking to see if you can use mgmt_cli locally on your management server with those credentials. If that works out ok - check that your API settings allow connections from the host you're running the script on.

(1)

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events