However since upgrading to 2.1.0 that doesn’t seem to work any longer nor any of the other variations of the call I’ve seen in the forums.
There is no result and the host doesn’t go into downtime.
Any clues as to what’s changed? My goal is to start down time when the call is made for a duration of 30 minutes so I can schedule recurring maintenance every night.
So far all the scripts seem to require you setting a start and end date/time which I don’t understand if you are saying you want it to last for a duration. The curl call above used to work and was the only way to set a downtime for specific duration when the call was made with the free version since it doesn’t include the scheduled down time functionality of the Enterprise version.
I am using rest api with bash and cron myself with 2.1 to do recurring downtimes in RAW edition.
Maybe my how to article helps as a possible workaround: