Project

General

Profile

Actions

Json-fact-format » History » Revision 3

« Previous | Revision 3/8 (diff) | Next »
Marek Hulán, 10/18/2013 07:56 AM


Json-fact-format

how to send facts

  • Foreman reports need to be sent to /api/hosts/facts
  • Following headers needs to be present:
      "Accept: application/json,version=2" 
      "Content-Type: application/json" 
    

facts JSON format

{
  "name"    => "fqdn.example.com",
  "facts"   => {
                 "fact1"      => "value",
                 "fact2"      => "value" 
                 "_timestamp" => "2013-10-18 07:47:45 +0000" 
               }
}

Updated by Marek Hulán over 10 years ago · 3 revisions