Json-fact-format » History » Version 1
Romain Vrignaud, 10/18/2013 07:50 AM
1 | 1 | Romain Vrignaud | h1. Json-fact-format |
---|---|---|---|
2 | |||
3 | h3. how to send facts |
||
4 | |||
5 | * Foreman reports need to be sent to /api/hosts/facts |
||
6 | * Followind headers needs to be present : |
||
7 | <pre> |
||
8 | "Accept: application/json,version=2" |
||
9 | "Content-Type: application/json" |
||
10 | </pre> |
||
11 | |||
12 | h3. facts JSON format |
||
13 | |||
14 | <pre> |
||
15 | { |
||
16 | "name" => "fqdn.example.com", |
||
17 | "facts" => { |
||
18 | "fact1" => "value", |
||
19 | "fact2" => "value" |
||
20 | } |
||
21 | } |
||
22 | </pre> |