Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8634

Document the /rest/graphs endpoint

    XMLWordPrintable

    Details

      Description

      I need to be able to determine what graphs are available for a particular IP or SNMP interface from the REST API.

      I am able to get the interfaces but currently the only options I found for determining what graphs were available was to

      • make a request for every possible graph and see which do not return a 404
      • scrape the html of "/opennms/graph/results.htm?reports=all&resourceId=node[XXX].interfaceSnmp[YYY]" looking for the graph urls and parsing the 'reports' url params

      Both of these are far from ideal!

      I'm thinking a new endpoint along the lines of

      • /opennms/rest/nodes/ {nodeId}

        /ipinterfaces/

        {ipInterface}

        /reports

      If this is already possible, sorry I've looked and couldn't find it anywhere.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              thomas_jenkinson@hotmail.co.uk Tom Jenkinson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration