1 Title: webapi: Fixed handling of the option mode in service discovery
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"}'