[icinga-checkins] icinga.org: icinga2/fix/wip-mfrosch-testing: Documentation: Fix missing quotes for API action URL

git at icinga.org git at icinga.org
Tue May 31 17:52:00 CEST 2016


Module: icinga2
Branch: fix/wip-mfrosch-testing
Commit: 88dff685671dac67e4bfbd7931035bbe8963fed2
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=88dff685671dac67e4bfbd7931035bbe8963fed2

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Wed May 25 21:19:33 2016 +0200

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 f79696b..9ee4afe 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
 
     {



More information about the icinga-checkins mailing list