Python client for Check Point R80 management server web APIs
Project description
cpauto
cpauto is a client library, written in Python, for the web APIs exposed via Check Point R80 management server software. The Check Point R80 management APIs provide automation and integration capabilities that were not available in previous versions of Check Point management server software.
https://sc1.checkpoint.com/documents/R80/APIs/#introduction
Behold, the power of cpauto:
>>> import cpauto >>> cc = cpauto.CoreClient('admin', 'vpn123', '10.6.9.81') >>> r = cc.login() >>> print(r.status_code) 200 >>> print(r.json()) {u'last-login-was-at': {u'posix': 1478636363481, u'iso-8601': u'2016-11-08T15:19-0500'}, u'uid': ...} >>> n = cpauto.Network(cc) >>> r = n.add('net_mgmt', { 'subnet': '10.6.9.0', 'subnet-mask': '255.255.255.0' }) >>> print(r.status_code) 200 >>> print(r.json()) {u'domain': {u'domain-type': u'domain', u'name': u'SMC User', u'uid': u'41e821a0-3720-11e3-aa6e-0800200c9fde'}, ...} >>> r = cc.publish() >>> print(r.status_code) 200 >>> print(r.json()) {u'task-id': u'01234567-89ab-cdef-8b0a-92e9635a47d3'} >>> r = cc.logout() >>> print(r.status_code) 200 >>> print(r.json()) {u'message': u'OK'}
Installation
To install cpauto, simply:
$ pip install cpauto
Enjoy.
Release History
0.0.3 (2016-11-23)
New Features
Full support for service and application objects.
Miscellaneous
All code confirmed to work with Python versions 2.7, 3.5, and in between.
0.0.2 (2016-11-21)
New Features
Full support for access and NAT objects.
Support for some misc. powerful features.
0.0.1 (2016-11-15)
Features
Full support for policy package, simple gateway, host, group and network objects.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cpauto-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5afc5cb9ca458ee0f0baefc5d0ef23e7ee66eb33e418645a43b05b81ef3aff |
|
MD5 | 44913f9654d4fe04a4128a1f13f8937d |
|
BLAKE2b-256 | 5508109452e16a2b23feb89d9ad07ac25938a45deffa1c49747b667dee10f248 |