HTTP Source
This source is similar to the file source. Instead of reading from a local file, it can read a requisition via HTTP from another OpenNMS instance. The location for the requisition is given by an OpenNMS provisioning ReST URL. It is possible to provide authentication credentials to be able to consume the ReST service.
Parameter | Required | Description |
---|---|---|
|
* |
Set |
|
* |
OpenNMS requisition ReST service base URL, e.g. http://demo.opennms.org/opennms/rest/requisitions |
|
OpenNMS user name for accessing the requisition ReST URL |
|
|
OpenNMS user password for accessing the requisition ReST URL |
|
|
* |
Mapper script for changing the requisition. For no operation use |
|
If set |
The given example configuration reads the requisition from the publicly available OpenNMS demo system.
### File: opennmsdemo/requisition.properties
# This example reads imports the requisition name Latency from
# the public available demo system.
source = http
source.url = http://demo.opennms.com/opennms/rest/requisitions/Latency
source.username = demo
source.password = demo
### mapper to set asset longitude and latitude based on a surveillance category ###
mapper = script
mapper.file = setGeoInfo.groovy