X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=doc%2F12-icinga2-api.md;h=a437e3a712e0a530242e605109e63bceab19f805;hb=23e30ccb67ca347aacf5664655b03c54f371de48;hp=38b1ec69f9cd61631eebec759652dc2f8e48b54f;hpb=35ce166bd214ca552d27cf4d8f4d9d8eea2859ae;p=icinga2
diff --git a/doc/12-icinga2-api.md b/doc/12-icinga2-api.md
index 38b1ec69f..a437e3a71 100644
--- a/doc/12-icinga2-api.md
+++ b/doc/12-icinga2-api.md
@@ -1134,31 +1134,6 @@ Example:
]
}
-### evaluate-macros
-
-Evaluates a macro string in the context of a specific host or service.
-
-Send a `POST` request to the URL endpoint `/v1/actions/evaluate-macros`.
-
- Parameter | Type | Description
- --------------|-----------|--------------
- query | string | **Required.** The macro string that should be evaluated.
-
-Example:
-
- $ curl -k -s -u root:icinga -H 'Accept: application/json' -X POST 'https://localhost:5665/v1/actions/evaluate-macros' \
- -d '{ "host": "icinga2-client1.localdomain", "query": "$host.name$" }' | python -m json.tool
- {
- "results": [
- {
- "code": 200.0,
- "status": "Evaluated macros.",
- "result": "icinga2-client1.localdomain",
- }
- ]
- }
-
-
## Event Streams