Hi,
Using foreman api, I am trying to list all facts with field "Reported
at" as Foreman UI is displaying.
e.g. call to "https://foreman.com/api/fact_values?search=fact_name" deosn't
return "Reported at" as it is display in foreman UI.
Hi,
Using foreman api, I am trying to list all facts with field “Reported
at” as Foreman UI is displaying.
e.g. call to “https://foreman.com/api/fact_values?search=fact_name”
deosn’t return “Reported at” as it is display in foreman UI.
To follow up on that, the Reported At field is a property of the host in
Foreman, it's not a fact. It's the time Foreman last received a report
from Puppet (or Chef, Ansible, etc) about this host.
You can get the last report for a given host using something like: