A simple SDK for SafeLine CE.
Project description
Python SafeLine is a python wrapper for the SafeLine WAF
Install
pip install safeline
Example
import safeline
if __name__ == '__main__':
BASE_URL = "https://xxx.com"
USERNAME = "admin"
PASSWORD = "xxxx"
OTP_SECRET = "IX62FxxxxxxxxxxW2WB4C"
waf = SafeLine(BASE_URL,
USERNAME,
PASSWORD,
OTP_SECRET
)
# list all certification
print(waf.certification.list)
# certification
waf.certification.update(cert_id, crt, key)
# ip_group
waf.ip_group.update(ipgroup_id, ipgroup_list)
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 Distribution
safeline-0.0.5.tar.gz
(4.3 kB
view hashes)