Rest API v2 for obtaining a list of SNMP interfaces doesn't return back node id

Description

  • The Rest API v2 for obtaining a list of SNMP interfaces doesn't return back nodeId with each record 
    (while if compared to the REST API v2 for obtaining a list of IP interfaces the latter does return the node id with each record).

  • Attached outputs for both APIs.

  • Commands:

curl -u <username>:<password> -H "Accept: application/json" -k https://<base_URL>/opennms/api/v2/snmpinterfaces

curl -u <username>:<password> -H "Accept: application/json" -k https://<base_URL>/opennms/api/v2/ipinterfaces/

  • Documentation:

SNMP Interfaces

https://docs.opennms.com/meridian/2021/development/rest/snmpinterfaces.html

IP Interfaces
https://docs.opennms.com/meridian/2021/development/rest/ipinterfaces.html

Environment

Meridian 2021

Acceptance / Success Criteria

None

Attachments

2

Lucidchart Diagrams

Activity

Show:

Alberto August 30, 2022 at 1:25 PM

merged to release-30.x

Jeff Gehlbach August 10, 2022 at 1:27 PM
Edited

I suspect might be on the critical path for . Just linking as "related" until that suspicion is confirmed.

Ahmed Essam August 6, 2022 at 4:21 PM

  • We can close this one

Ahmed Essam August 4, 2022 at 8:30 AM

Thanks Benjamin for the feedback.
I guess this will be handled under  
https://issues.opennms.org/browse/HELM-334

so no longer need this one (can close )

Benjamin Reed August 3, 2022 at 2:16 PM

FYI, this might be the way it is because of infinite recursion when REST queries are made against higher-level objects. Not saying it's necessarily a hard fix, but we need to make sure the other model REST APIs are not broken by adding nodeid to the rendered results.

Done

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Story Points

Sprint

Priority

PagerDuty

Created June 24, 2022 at 9:31 AM
Updated September 8, 2022 at 6:01 PM
Resolved August 30, 2022 at 1:25 PM