From 88dff685671dac67e4bfbd7931035bbe8963fed2 Mon Sep 17 00:00:00 2001 From: Michael Friedrich <michael.friedrich@netways.de> Date: Wed, 25 May 2016 21:19:33 +0200 Subject: [PATCH] Documentation: Fix missing quotes for API action URL fixes #11847 --- doc/9-icinga2-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/9-icinga2-api.md b/doc/9-icinga2-api.md index f79696b57..9ee4afea1 100644 --- a/doc/9-icinga2-api.md +++ b/doc/9-icinga2-api.md @@ -318,7 +318,7 @@ Some queries can be performed for more than just one object type. One example is action which can be used for both hosts and services. When using advanced filters you will also have to specify the type using the `type` parameter: - $ curl -k -s -u root:icinga -H 'Accept: application/json' -X POST "https://localhost:5665/v1/actions/reschedule-check \ + $ curl -k -s -u root:icinga -H 'Accept: application/json' -X POST 'https://localhost:5665/v1/actions/reschedule-check' \ -d '{ "type": "Service", "filter": "service.name==\"ping6\"" }' | python -m json.tool When building filters you have to ensure that values such as @@ -694,7 +694,7 @@ The example reschedules all services with the name "ping6" to immediately perfor (`next_check` default), ignoring any time periods or whether active checks are allowed for the service (`force_check=true`). - $ curl -k -s -u root:icinga -H 'Accept: application/json' -X POST "https://localhost:5665/v1/actions/reschedule-check \ + $ curl -k -s -u root:icinga -H 'Accept: application/json' -X POST 'https://localhost:5665/v1/actions/reschedule-check' \ -d '{ "type": "Service", "filter": "service.name==\"ping6\"", "force_check": true }' | python -m json.tool {