Home / Supported Actions / Activate Monitor

Activate Monitor


You can use this API to activate a monitor. You can activate either a website, email server, web page analyzer or DNS monitor in Site24x7.

Sample Request

Below is a sample request for activating a website monitor which is associated with a group:

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

For example,

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

Below is a sample request for activating a website monitor which is not associated with any group:

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

For example,

http://site24x7.com/api/xml/activatemonitor/monitordisplayname?APIKEY=[APIKEY]


Sample Success Response

<response uri="/api/xml/activatemonitor/monitordisplayname" action="ActivateMonitor">
<result>
<response>Successfully Activated 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/activatemonitor/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