Why the request for api/hosts/:id does not return the same results as the request for /hosts/:id/externalNodes?Name=:id?

This current behavior of api/hosts/:id, returning a subset of all parameters present in Foreman, greatly compromises the intergration of the Foreman with Ansible,.

While the /hosts/:id/externalNodes?Name=:id, in addition to returning the whole set of parameters, it also performs the parse of snippets erb.

It’s interesting externalNodes is not documented on API documentation unless it’s an alias for hosts/:id/enc.

1 Like


hosts/:id/enc/ return the same result of Puppet External nodes YAML dump. Exactly what I was looking for!

Why have hosts/:id/?

Would not it be better to just have hosts/:id/enc/?