Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4313

Endpoint API for searching after ip-addresses

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • None
    • None
    • API
    • None

    Description

      For the application being developed, my company would like the ability to search for IP addresses to minimize the network load. This is currently not possible because neither the endpoint 

      /api/v0/devices

       nor 

      /api/v0/address

       offers the possibility to filter for IP addresses. See the attached screenshots.

       

      Is there a possibility to implement the above requirement?

       

      Thanks in advance for the feedback.

      Attachments

        Activity

          [OBS-4313] Endpoint API for searching after ip-addresses

          Presumably you mean the endpoint 'address' here.

          For 'devices' I tried it also with the fields 'address' and 'network' and still get no filtered result.

          However, it is enough for me to filter for IPs via the endpoint:

          .../address/?address=...

           

          Thanks!

          k671634 Younes Zayakh added a comment - Presumably you mean the endpoint 'address' here. For 'devices' I tried it also with the fields 'address' and 'network' and still get no filtered result. However, it is enough for me to filter for IPs via the endpoint: .../address/?address=...   Thanks!

          Thank you for the quick feedback.

          The 'address=...' field works wonderfully!

          k671634 Younes Zayakh added a comment - Thank you for the quick feedback. The 'address=...' field works wonderfully!

          Added ability for filter by IP in devices route in r12384.

          Use "address=2.2.2.2".
          Also you can use network (with prefix).

          landy Mike Stupalov added a comment - Added ability for filter by IP in devices route in r12384. Use "address=2.2.2.2". Also you can use network (with prefix).
          • API route devices currently not support filter by IP addresses.
            We will add this ability soon.
          • API route address - you use incorrect field, just use "address=2.2.2.2"
          landy Mike Stupalov added a comment - API route devices currently not support filter by IP addresses. We will add this ability soon. API route address - you use incorrect field, just use "address=2.2.2.2"

          People

            landy Mike Stupalov
            k671634 Younes Zayakh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: