peter.g
(Peter Goudman)
April 25, 2023, 10:57am
1
Hi everyone,
I would like to execute a deployment using the director API but I cannot find the endpoint in the API documentation (REST API - Icinga Director )
Can some please point me in the right direction.
Icinga Web 2 Version 2.11.4
director 1.9.0
Many thanks
Peter
rivad
(Dominik)
April 25, 2023, 12:16pm
2
First example from the link in your post: https://icinga.example.com/icingaweb2/director/host?name=hostname.example.com'
so I guess host/icingaweb2/director/endpoint?parameters.
The rest of the documentation is relative to https://icinga.example.com/icingaweb2/ for example director/service
, director/host
and so on.
Trigger actions¶
You can of course also use the API to trigger specific actions. Deploying the configuration is as simple as issueing:
POST director/config/deploy
Will result in something like:
POST https://icinga.example.com/icingaweb2/director/config/deploy
1 Like
peter.g
(Peter Goudman)
April 27, 2023, 11:34am
3
Thank you Dominik!
Just what I was looking for.