CheckPointSW / CheckPointAnsibleMgmtCollection

This Ansible collection provides control over a Check Point Management server using Check Point's web-services APIs.
https://galaxy.ansible.com/check_point/mgmt
Apache License 2.0
39 stars 30 forks source link

Getting missing header error while using cp_mgmt_run_script #112

Open chawl505 opened 1 year ago

chawl505 commented 1 year ago

Version used: 3.2.0 Error Details: {"changed": false, "msg": "Checkpoint device returned error 400 with message {'code': 'generic_err_missing_required_header', 'message': 'Missing header: [X-chkp-sid]'} Failed to discard session with error 400 with message {'code': 'generic_err_missing_required_header', 'message': 'Missing header: [X-chkp-sid]'}"}

Playbook Snippet:

chkp-edenbr commented 1 year ago

Seems like the login failed before running the playbook, try running a different module. Also, what's the purpose of the 'domain' var mentioned? ansible_checkpoint_domain should be enough. Also try running the API login command in the cli to make sure there isn't a problem