Actions
Bug #38725
closedInterface object does not provide backlink to host
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
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).
If I want to get interfaces in relation to their hosts, domains and subnets, I need to do O(n) API requests (one `GET /api/hosts`, n `GET /api/hosts/:host_id/interfaces`).
Please also provide the host backlink in the interface object (aka `host_id` and `host_name`).
Actions