This API allows you to edit the values configured in the URL Monitors.
Using Resource ID:
https://[HOST]:[PORT]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=UrlMonitor&resourceid=[RESOURCEID]
By Display Name:
https://[HOST]:[PORT]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=UrlMonitor&displayname=[DISPLAYNAME]
Using URL:
https://[HOST]:[PORT]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=UrlMonitor&url=[URL]
Supported HTTP method: POST
Allowed roles: Administrator
Field | Description |
---|---|
apikey | The key generated from the Generate API Key option in the Settings tab. |
resourceID | The resourceid of the URL monitor that you are going to edit. |
displayname | The display name of the HTTP-URL monitor. |
url | The HTTP/HTTPS URL address that you want to monitor. |
checkForContent | The keyword for content matching. The URL monitoring searches the keyword in the content of the URL page to check the availability of the URL. This field is optional. |
errorIfMatch |
The keyword which when matches with the content in the URL must be notified of error . Note: The search is case sensitive. Multiple keywords should be put within quotes. Otherwise, it will be treated as 'Any' one of the multiple keywords.
|
httpCondition |
The condition/criteria of the Response Code with respect to the httpValue at which error should be notified. Possible values are:
|
httpValue | The threshold value with respect to which the httpCondition should be met. |
pollInterval | The polling interval for which Applications Manager updates the status of the monitor. |
requestParams | The request parameters. For example, if you want to monitor a URL like http://appmanager:9090/showresource.do?haid=1&type=UrlMonitor&method=getMonitorForm, then provide "?haid=1&type=UrlMonitor&method=getMonitorForm" as request parameter. |
timeout | The time, in minutes, for which the URL monitor should wait for a page to complete downloading before timing out in Time out field. |
urlMethod |
Choose between the Post and Get method, which are the two types of Form method for any HTTP/HTTPS URL. Possible values are:
|
userName | The Username if the URL requires Form-based authentication. |
password | The password for the corresponding Username if the URL requires Form-based authentication. |
verifyError |
Specify if want the monitor to immediately be scheduled to run again for verification, when an error is detected. Possible values are:
|
Other Common APIs |