While executing the REST API in Applications Manager, you might need to mention the resource ID for a monitor or a monitor group. Following are the parameters used for referring to a monitor or monitor group in a REST API:
resourceid - Resource ID of a monitor
haid - Resource ID of a monitor group
You can find out the resource ID of a monitor or monitor group using any of the following methods:
You can find the resource ID of a monitor/monitor group directly by accessing the required monitor or monitor group from the Applications Manager UI and identifying the resourceid or haid from the URL of that monitor/monitor group page directly.
Note: This method will not be applicable for users with Applications Manager Plugin (APM Plugin) setup.
Resource ID of a Monitor (resourceid):
Resource ID of a Monitor Group (haid):
Alternatively, you can find the resource ID of the monitor/monitor group using the DB Query Tool from the Applications Manager UI. To do so, navigate to Settings tab -> Tools -> Support -> Database Summary -> Query Tool. Then execute the following query to obtain the resource ID of the monitor/monitor group along with their display name from the results:
Query for Monitor (resourceid):
SELECT MO.RESOURCEID, MO.DISPLAYNAME, MO.TYPE FROM AM_ManagedObject MO JOIN AM_ManagedResourceType ON TYPE=RESOURCETYPE WHERE TYPE NOT IN ('HAI', 'Network')
Query for Monitor Group (haid):
SELECT RESOURCEID,DISPLAYNAME FROM AM_ManagedObject WHERE TYPE='HAI'