- Products
- Learn
- Local User Groups
- Partners
- More
CheckMates Fifth Birthday
Celebrate with Us!
days
hours
minutes
seconds
Join the CHECKMATES Everywhere Competition
Submit your picture to win!
Check Point Proactive support
Free trial available for 90 Days!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
The 2022 MITRE Engenuity ATT&CK®
Evaluations Results Are In!
Now Available: SmartAwareness Security Training
Training Built to Educate and Engage
MITRE ATT&CK
Inside Check Point products!
CheckFlix!
All Videos In One Space
As R80.40 support users with API key, we need a method to login using this feature.
Keys are easier to work with in automation and I think the code only needs a small adjustment to support this.
if command == "login":
...
if command == "login-api":
# Login parameters:
api_key = parameters.get("user", parameters.get("api-key"))
...
# Tries to login:
client.login_with_api_key(api_key, domain=domain, payload=payload)
This collection was necessary because Ansible did not have any support for Check Point management. This did not happen until Ansible 2.9. If this module is being used, I recommended updating playbooks to use the official management API modules collection. If you would still rather use the github repository rather than ansible galaxy, then the new module (synced with Ansible Galaxy) should be used.
- https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection
Use of API keys have been supported since the 1.0.5 release of the Ansible module.
- https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection/releases/tag/1.0.5
Thank you!
I looked into https://github.com/CheckPointSW/cpAnsible.
What is the reason to have this as well?
This collection was necessary because Ansible did not have any support for Check Point management. This did not happen until Ansible 2.9. If this module is being used, I recommended updating playbooks to use the official management API modules collection. If you would still rather use the github repository rather than ansible galaxy, then the new module (synced with Ansible Galaxy) should be used.
- https://github.com/CheckPointSW/CheckPointAnsibleMgmtCollection
Hi Harald,
Indeed, the API Key is supported since R80.40 (Management API v1.6).
Administrators of Management Server can use this method of authentication along with other existing methods.
Of course, a corresponding administrator account should be set to use this method, and an API key should be generated.
This configuration can be done in the SmartConsole, or using the Management API:
https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-api-key~v1.6%20
https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-administrator~v1.6%20
The login command can be found here.
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY