Skip to content

locked/haproxy-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

haproxy-api

Python HAProxy API Client

Requirements

Class Initialization

from haproxyapi import haproxy
h = haproxy('http://127.0.0.1:800/', ("user","password"))

Disable/Enable a server on a specific backend

h.disable("backend", "server")
h.enable("backend", "server")

Display Statistics

print h.stats()

Or retrieve a specific server status:

print h.status("backend", "server")

About

Python HAProxy API Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages