outline-vpn-api
A Python API wrapper for Outline VPN
How to use
from outline_vpn.outline_vpn import OutlineVPN
client = OutlineVPN(api_url="https://127.0.0.1:51083/xlUG4F5BBft4rSrIvDSWuw",
cert_sha256="4EFF7BB90BCE5D4A172D338DC91B5B9975E197E39E3FA4FC42353763C4E58765")
for key in client.get_keys():
print(key.access_url)
new_key = client.create_key()
key = client.create_key(
key_id="new_key_001",
name="Yet another test key",
data_limit=1024 * 1024 * 20,
method="aes-192-gcm",
password="test",
port=2323,
)
client.rename_key(new_key.key_id, "new_key")
client.delete_key(new_key.key_id)
client.add_data_limit(new_key.key_id, 1000 * 1000 * 20)
client.delete_data_limit(new_key.key_id)
API documentation
https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/shadowbox/server/api.yml