List and Map Dependencies


The APIs - listDependencies and mapDependencies can be used to list, add and remove dependencies for Health and Availability attributes.

Request Parameters

The parameters involved in executing this API request are:

Field Description
resourceid The resource ID of the monitor to which dependencies should be mapped or removed.
attributeid The attribute ID of the Health or Availability attribute of the particular monitor.
dependentResources The dependencies to be mapped or removed. Values should be given in the following format: resourceid:attributeid
dependenciesCount The integer representing number of mapped dependencies on which the Health or Availability attribute should depend.
removeMapping  The boolean value which will decides the behaviour of the REST API i.e. if dependencies should be mapped or mapping removed (Optional parameter , default value : false).

Sample API Requests

mapDependencies

http://localhost:9840/AppManager/xml/mapDependencies?apikey=91f1aa274abdeea8ef8e49a1e37ce1be&resourceid=10000110&attributeid=401&dependentResources=10000110:53005,10000110:53006&dependenciesCount=3&removeMapping=true

listDependencies

http://localhost:9840/AppManager/xml/listDependencies?apikey=91f1aa274abdeea8ef8e49a1e37ce1be&resourceid=10000110&attributeid=400