maaspower.webhook#

webhook.py#

Use Flask to implement a web server that provides web hooks based on the provided configuration

Members

command

Accept webhooks at /maaspower/<devicename>/<command>

hello

Test root endpoint

load_web_hook

Setup config for the webserver

run_web_hook

Launch the webserver

maaspower.webhook.hello()[source]#

Test root endpoint

maaspower.webhook.command(devicename: str, command: str)[source]#

Accept webhooks at /maaspower/<devicename>/<command>

maaspower.webhook.load_web_hook(c: MaasConfig)[source]#

Setup config for the webserver

maaspower.webhook.run_web_hook(c: MaasConfig)[source]#

Launch the webserver