Python library for using the management APIs

Document created by Uri Bialik Expert on Dec 16, 2015Last modified by Inbar Moskovich on Jul 11, 2017
Version 13Show Document
  • View in full screen mode

Overview

Attached a python bundle which contains a library (mgmt_api_lib) that simplifies usage of the Check Point management APIs and also several examples.

 

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.

 

 

Description

A python 2.7 code that uses a Check Point package that handles all the communication with the Check Point management server.

 

Instructions

Unzip the attached bundle.

Run each example from its folder.

python example_name.py

 

Code Version

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

...

13 people found this helpful

Attachments

Outcomes