Module: check_mk
Branch: master
Commit: dd3b58e562966607cec776a012f52a6989f101a8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dd3b58e5629666…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon May 15 09:28:59 2017 +0200
4701 WATO Web-API: now able to manage sites
You can now configure the WATO sites through new API calls
<ul>
<li>get_site: requires the site_id key in the request object</li>
<li>set_site: expects the same data format, than the get_site call
provides.</li>
<li>delete_site: requires the site_id key in the request object</li>
<li>login_site: requires the site_id, the username and the password keys in the
request object</li>
<li>logout_site: requires the site_id key in the request object</li>
</ul>
Important: Right now the interface is only able to speak the python language.<br>
The existing output_format parameter, as well as the new request parameter
<tt>request_format</tt>
must both be set to <tt>python</tt>. An additional interface language is
planned, maybe XML.
Furthermore, these API calls are intended for admin use only, since they might modify the
entire
site configuration object.
Change-Id: If3fd51faeb8d9c1e4d3977eccdd73cb2f4bda34d
---
.werks/4701 | 26 +++
web/htdocs/htmllib.py | 1 +
web/htdocs/wato.py | 215 ++++---------------------
web/htdocs/watolib.py | 370 ++++++++++++++++++++++++++++++++++---------
web/htdocs/webapi.py | 16 +-
web/plugins/webapi/webapi.py | 122 +++++++++++++-
6 files changed, 486 insertions(+), 264 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=dd3b58e562…