REST Resources
-
/ /acks /acks/{ack-id} -
/alarms -
/alarms/{alarm-id} -
/nodes -
/nodes/{node-id} -
/outages -
/outages/{outage-id} -
/outages/count -
/outages/forNode/{node-id} -
/requisitions -
/requisitions/{foreign-source} -
/requisitions/{foreign-source}/nodes/{node-id} -
/sched-outages -
/sched-outages/{outage-name} -
/stats/alarms -
/stats/alarms/by-severity
/api/space/opennms/nodes
In general, a node can be any device in a network. This concept allows you to discover resources on the network. A node has a unique ID that allows an API to get information about it. OpenNMS also supports a mechanism to reference a foreign node by its own ID, such as a Space device ID. For more information about referencing a Space device ID as a foreign source and ID pair within OpenNMS APIs, see the "Mapping Space Device IDs to OpenNMS Node IDs" section of the Fault and Performance APIs topic.
The following operations are supported on this resource:
- GET - Get list of nodes.
GET /nodes | Version 1 |
This API is used to retrieve information about all the nodes.
Sample Usage
GET /nodes
- Accept Headers:
application/vnd.net.juniper.space.opennms+xml;version=1
<nodes count="1" totalCount="1">
<node devicePlatform="FIREFLY-PERIMETER" foreignId="491540" foreignSource="space" label="192.168.26.163" id="5" type="A">
<assetRecord>
<category>Unspecified</category>
<id>38</id>
<lastModifiedBy />
<lastModifiedDate>2017-03-17T07:26:19.646Z</lastModifiedDate>
<node>5</node>
</assetRecord>
<categories id="10" name="Medium" />
<categories id="7" name="Security Devices" />
<categories id="16" name="Monitor_SNMP" />
<categories id="13" name="_Global">
<authorizedGroups>_Global</authorizedGroups>
</categories>
<createTime>2017-03-16T15:25:57.676Z</createTime>
<labelSource>U</labelSource>
</node>
</nodes>
Access Control
The following capabilities are required to access this API: cap_fmpm_Alarm