With the APIs given below, you can edit or modify the details of a specific monitor:
Supported HTTP method: POST
Allowed roles: Administrator
The common parameters involved in these API requests are described below:
Field | Description |
---|---|
apikey | The key generated from the Generate API Key option in the Settings tab. |
displayname | The display name for the monitor. HTML encoding for special characters is required (Example: HTML encoding for & is & and" is "). |
newdisplayname | The new display name for the monitor. HTML encoding for special characters is required (Example: HTML encoding for & is &and " is "). |
host | The host name of Applications Manager server. |
pollInterval | The interval at which the server needs to be polled. The default value is 5 minutes. |
port | The port of Applications Manager server. |
resourceid | The unique id which can be found from AM_ManagedObject table in the database. |
This example helps you to edit the display name of a service monitor in Applications Manager:
If the API is not executed correctly, the request will fail and errors will be thrown.