PollNow API

Introduction

This section is common to all the editions of IT360 - Professional Edition, Enterprise Edition (Both the Central Server and the Probes) and the MSP Edition (Both the Central Server and the Probes).

This API allows you to poll a particular monitor.

Sample Request

'http://[Host]:[Port]/AppManager/xml/PollNow?apikey=[APIKEY]&resourceid=[RESOURCEID]'

Request Parameters

The parameters involved in executing this API request are;

Field
Description        
apikey The key generated, by using the 'REST API' option, under the 'Admin' tab.
resourceid The resource id of the monitor that needs to be polled.

Example

'http://app-xp5:9099/AppManager/xml/PollNow?apikey=123b7328e4b41d1efe64aa7980d83d77&resourceid=10000293'

Example Output:

<AppManager-response uri="/AppManager/xml/PollNow">
<result>
<response method="PollNow">
<message>The monitor polled successfully.</message>
</response>
</result>
</AppManager-response>

If the API is not executed correctly, the request will fail and errors will be shown as given belowl;

<AppManager-response uri="/AppManager/xml/PollNow">
   <result>
      <response response-code="4037">
         <message>Improper resourceid in the request.</message>
      </response>    
    </result>
</Apm-response>

Refer this page for a list of common error conditions.

Top



Copyright © 2013, ZOHO Corp. All Rights Reserved.