Project

General

Profile

Actions

Json-fact-format » History » Revision 1

Revision 1/8 | Next »
Romain Vrignaud, 10/18/2013 07:50 AM


Json-fact-format

how to send facts

  • Foreman reports need to be sent to /api/hosts/facts
  • Followind 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" 
               }
}

Updated by Romain Vrignaud over 10 years ago · 1 revisions