Home / Supported Actions / Delete Monitor

Delete Monitor


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

Sample Request

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

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

For example,

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

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

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

For example,

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


Sample Success Response

<response uri="/api/xml/deletemonitor/monitordisplayname" action="DeleteMonitor">
<result>
<response>Successfully deleted 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/deletemonitor/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