Python API client for DETERRERS
Project description
Python API client for DETERRERS
This library makes it easy to interact with the DETERRERS perimeter firewall portal to automate registration, and configuration of IP addresses and firewall profiles.
Installation
Use pip to install the latest version:
pip install deterrers-api
Example
import deterrersapi
deterrers = deterrersapi.Deterrers('https://deterrers.example.com', '<api-token>')
# get information about ip address
deterrers.get('192.0.0.1')
# delete ip address
deterrers.delete('192.0.0.1')
# add a new ip address with `virtUOS` as admin
deterrers.add('192.0.0.1', ['virtUOS'])
# update ip with firewall profile `Multipurpose`
deterrers.update('192.0.0.1', 'Multipurpose', '')
# activate firewall profile
deterrers.action('192.0.0.1', 'register')
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
deterrers-api-0.5.tar.gz
(4.0 kB
view details)
File details
Details for the file deterrers-api-0.5.tar.gz
.
File metadata
- Download URL: deterrers-api-0.5.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86b0d069f527951b70ad0d1ab69eee7e6216e673dc8cc57926d14fc7a2bf3e4b |
|
MD5 | 00b626ce4adc2a15efbf2cd7498bace8 |
|
BLAKE2b-256 | b66be7828b6ab538bab5b6324f648a87cbc730aa4ead899c97a2ac3737a75fc5 |