Licenses: Updated the list of licenses and added a PDF containing all license texts
[check_mk.git] / .werks / 5913
blobbc665ef734a5881ec59b6672a9b28217a9ae22bf
1 Title: webapi: Fixed handling of the option mode in service discovery
2 Level: 1
3 Component: wato
4 Compatible: compat
5 Edition: cre
6 Version: 1.6.0i1
7 Date: 1523461091
8 Class: fix
10 The previous implementation of the option "mode" in service_discovery did not
11 allow a handling in the same way as in other webapi requests like including it
12 into the request part. This is now fixed. The old behaviour is still supported.
14 old only supported this syntax:
15 curl "http://localhost/$OMD_SITE/check_mk/webapi.py?action=discover_services&_username=automation&_secret=$(cat $OMD_ROOT/var/check_mk/web/automation/automation.secret)&mode=refresh" -d 'request={"hostname":"heute"}'
17 newly supported and now coherent to other calls:
18 curl "http://localhost/$OMD_SITE/check_mk/webapi.py?action=discover_services&_username=automation&_secret=$(cat $OMD_ROOT/var/check_mk/web/automation/automation.secret)" -d 'request={"hostname":"heute", "mode":"refresh"}'