Insight 'iql_objects_get' REST API does not fetch Inbound references

XMLWordPrintable

    • 3
    • 2

      Issue Summary

      Insight REST API does not fetch Inbound references. Only Outbound references are retrievable.

      REST API mentions referenced object in the Response section, but only works for Outbound references.

      Steps to Reproduce

      • Create 3 object Types, for example:
        • Servers
        • Application
        • Location
      • In Server object type, create an outbound reference to Location object Type
      • In Application object Type, create an attribute 'Server', Type Object pointing to Servers object type
      • Create some dummy objects

       

      • Use either of the following REST API
      /rest/insight/1.0/iql/objects?objectSchemaId={id}&iql=objectType=Servers
      
      /rest/insight/1.0/iql/objects?objectSchemaId={id}&includeAttributesDeep=2&iql=objectType=Servers
      

      Expected Results

      Inbound and outbound reference should be fetched.

      Actual Results

      Only outbound reference are fetched.

      Nothing about Inbound references.

      Workaround

      1) Use an IQL to find all inbound referenced Objects.
      However, if there are many Server objects, it will be required to call REST API as many times as objects are which could be an issue

      The IQL would look like the following:

      {{host}}:{{port}}/rest/insight/1.0/iql/objects?objectSchemaId={id}&iql=object HAVING outR(Key = {ServerKey})
      

      2) Server object Type could have an outbound reference to Application object type, but we are storing the same data in multiple objects which is not very efficient.

       

        1. image-2021-08-26-16-36-20-719.png
          87 kB
          Pablo Bartolome
        2. image-2021-08-26-16-37-23-338.png
          130 kB
          Pablo Bartolome
        3. image-2021-08-26-16-42-36-687.png
          93 kB
          Pablo Bartolome

            Assignee:
            Unassigned
            Reporter:
            Pablo Bartolome (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: