Attached a python bundle which contains a library (mgmt_api_lib) that simplifies usage of the Check Point management APIs and also several examples.
- add_access_rule - demonstrates a basic flow of using the APIs with the Python library.
The example performs login command, adds an Access Rule to the top of the Access Policy layer and publishes the changes.
- find_duplicate_ip - demonstrates searching for all the hosts that share the same IP-address.
- discard_sessions - utility which allows to unlock objects, that were locked by another session of this user.
A python 2.7 code that uses a Check Point package that handles all the communication with the Check Point management server.
Unzip the attached bundle.
Run each example from its folder.
Code version 1.2.2
Tested on version
R80, API version 1.0
NOTICE: By using this sample code you agree to terms and conditions in this Terms and Conditions