Home / Supported Actions / Suspend Monitor

Suspend Monitor


You can use this API to suspend either a website/email server/web page analyzer/DNS monitor.

Sample Request

A sample request for suspending a monitor which is associated with a group is given below:

http://site24x7.com/api/xml/suspendmonitor/group-name:[GROUP-NAME]/[DISPLAYNAME]?APIKEY=[APIKEY]

 For example,

http://site24x7.com/api/xml/suspendmonitor/group-name:monitorgroupname/monitordisplayname?APIKEY=f98394a9538975fe3ba18e1501e3ecb1

A sample request for suspending a monitor which not associated with any group is given below:

http://site24x7.com/api/xml/suspendmonitor/[DISPLAYNAME]?apikey=[APIKEY]

For example,

http://site24x7.com/api/xml/suspendmonitor/monitordisplayname?APIKEY=f98394a9538975fe3ba18e1501e3ecb1


Sample Success Response

<response uri="/api/xml/suspendmonitor/monitordisplayname" action="SuspendMonitor">
<result>
<response>Successfully suspended the monitor</response>
</result>
</response>

Sample Error Response

If there is an error in executing the action, you get an error response as shown below:

<response uri="/api/xml/suspendmonitor/monitordisplayname">
<error>
<code>2601</code>
<message>
The specified monitor is not present in Site24x7. Check if [displayname] is correct.
</message>
</error>
</response> 




     RSS of this page