Check Point REST API abstraction
Project description
Check Point API
Installation
pip install checkpoint-api
Basic-Nutzung
from checkpoint_api.checkpoint import CheckpointSession
with CheckpointSession("api", "CGx3IjUSd47TrXKh6zJ7", "10.111.30.25") as cps:
data = {'name': 'IP_10.14.1.2_xlsrv02', 'details-level': 'standard'}
response_json = cps.post("show-host", json=data)
print(response_json)
Output:
{'color': 'black',
'comments': '',
'domain': {'domain-type': 'domain',
'name': 'SMC User',
'uid': '41e821a0-3720-11e3-aa6e-0800200c9fde'},
'groups': [],
'icon': 'Objects/host',
'interfaces': [],
'ipv4-address': '10.14.1.2',
'meta-info': {'creation-time': {'iso-8601': '2020-05-27T10:26+0200',
'posix': 1590567969972},
'creator': 'user01',
'last-modifier': 'user01',
'last-modify-time': {'iso-8601': '2020-05-27T10:26+0200',
'posix': 1590567969972},
'lock': 'unlocked',
'validation-state': 'ok'},
'name': 'IP_10.14.1.2_xlsrv02',
'nat-settings': {'auto-rule': False},
'read-only': False,
'tags': [],
'type': 'host',
'uid': '8874eceb-e217-476e-a16c-b1ec2926b921'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
checkpoint_api-0.0.2-py3.9.egg
(16.3 kB
view hashes)