Giter Site home page Giter Site logo

chkp-xaviera / cp_mgmt_api_python_sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from checkpointsw/cp_mgmt_api_python_sdk

0.0 0.0 0.0 135 KB

Check Point API Python Development Kit simplifies the use of the Check Point Management APIs.

License: Apache License 2.0

Python 100.00%

cp_mgmt_api_python_sdk's Introduction

cp_mgmt_api_python_sdk

Check Point API Python Development Kit simplifies the use of the Check Point Management APIs. The kit contains the API library files, and sample files demonstrating the capabilities of the library. The kit is compatible with python 2 and 3.

Content

cpapi - the API library project.

add_access_rule - demonstrates a basic flow of using the APIs: performs a login command, adds an access rule to the top of the access policy layer, and publishes the changes.

clone_host - demonstrates cloning and replacing an existing host with a cloned host.

discard_sessions - demonstrates how to discard the changes to the database for un-published sessions.

find_duplicate_ip - demonstrates searching for all the hosts that share the same IP address.

For examples, see the relevant Python version folder.

Instructions

SDK usage from a remote machine

Install the SDK by using the pip tool or by downloading the repository.

Install with pip

Run:

pip install cp-mgmt-api-sdk

Or:

pip install git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk
Note: you might be required to use "sudo" for this command.

Download the repository

Clone the repository with this command:

git clone https://github.com/CheckPointSW/cp_mgmt_api_python_sdk

or by clicking on the ‘Download ZIP’ button and using unzip.

Navigate to .../cp_mgmt_api_python_sdk/ directory and run:

pip install .

Upgrade

Upgrade the SDK by using pip tool:

pip install --upgrade git+https://github.com/CheckPointSW/cp_mgmt_api_python_sdk
Note: you might be required to use "sudo" for this command.

Uninstall

Uninstall the SDK by using pip tool:

pip uninstall cp-mgmt-api-sdk
Note: you might be required to use "sudo" for this command.

SDK usage from a management machine

Follow the instructions above in the "Download the repository" section, to download the repository but do not run pip install .

After the downloading, copy the SDK to the machine (use scp, WinSCP or similar tool).

Configure your environment variables

export PYTHONPATH=$PYTHONPATH:<“CP-SDK” FULL PATH>

For example, if you copied the SDK to the path “/home/admin/” the command will be:
export PYTHONPATH=$PYTHONPATH:/home/admin/cp_mgmt_api_python_sdk/

Development Environment

The kit is developed using Python versions 2.7 and 3.7

cp_mgmt_api_python_sdk's People

Contributors

chkp-yaelg avatar chkp-royl avatar chkp-ubialik avatar chkp-orso avatar chkp-roniz avatar chkp-yuvalfe avatar chkp-edenbr avatar chkp-amiads avatar chkp-rdecker avatar chkp-ofer avatar chkp-shakedme avatar chkp-shirango avatar aque avatar dywisor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.