I have a distributed setup and would like to use the REST-API to set downtimes, when running ansible tasks (patchruns).
As API url I am using the master/central GUI. In the cmc.log I can see that it tries to set the downtime but fails
Executing external command: SCHEDULE_HOST_DOWNTIME;myhost;1634135372;1634136572;0;0;1200;automation;Security updates
Cannot execute command on non-existing host myhost
My guess is, that since the target host (myhost) is on different site, it cannot set the downtime. Is the API on the central site not able to set this on the corresponding host/site? When doing this manually in the master GUI directly, this does not seem to be a problem.
The thing is, that the master site does have connection to all it’s sites, but the host that is running the ansible tasks does not.
Or maybe I am just on the wrong track here, …