Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-38956

Host backlink is missing in interface object

XMLWordPrintable

    • 3
    • False
    • foreman-3.17.0-0.2.develop.20251012004631gitb9ced20
    • Satellite Rocket Sprint 6, Satellite Rocket Sprint 7
    • sat-rocket
    • None
    • None
    • None
    • None

      In the API, interfaces can be looked up by host, domain or subnet. Each returned object then contains backlinks to domain and subnet, but not the host (see the example in https://apidocs.theforeman.org/foreman/3.4/apidoc/v2/interfaces/show.html).

      Steps to reproduce:- 

      • ssh to satellite
      • use curl command to get the interface object for a host

                   ``` curl -u admin:changeme -H "Content-Type: application/json" "sat-url/api/hosts/:host_id/interfaces"```

      • see the returned interface objects

      the interface object does not contain host backlink(host_id, host_name).

      Solution:- 

      After this fix the interface object will contain host backlink

              rh-ee-ajangir Arvind Jangir
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Nakul Pathak Nakul Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: