Go to All Forums

API request to get current Scheduled Maintenance status of a monitor

Hi 

We are trying to obtain current maintenance status of a monitor by calling API with monitor name or ID. However I have checked both monitors (www.site24x7.com/help/api/#monitors) & Scheduled maintenance (www.site24x7.com/help/api/#schedule-maintenances) documentation and wasn't able to identify if this there was option which provided me that information. 

What we are aiming to do is to put a server monitor under maintenance prior to we shutting down during scheduled down time but also check if there is already a scheduled maintenance setup then skip creating another scheduled maintenance window. 

Hope to hear back from you soon. 

Thanks

Mittal B

Like (2) Reply
Replies (1)

Re: API request to get current Scheduled Maintenance status of a monitor

Hi Mittal,

You can check whether a monitor is currently in maintenance status by calling the current_status api.

https://www.site24x7.com/help/api/#current-status-of-monitor

 

Thillai.

Like (0) Reply

Was this post helpful?