PuppetDB 1.5 » API » Facts Wire Format

Included in Puppet Enterprise 3.2. A newer version is available; see the version menu above for details.

Format

Facts are represented as JSON. Unless otherwise noted, null is not allowed anywhere in the set of facts.

{"name": <string>,
 "values": {
     <string>: <string>,
     ...
     }
}

The "name" key is the certname the facts are associated with.

The "values" key points to a JSON Object that represents the set of facts. Each key is the fact name, and the value is the fact value.

Fact names and values MUST be strings.

Encoding

The entire fact set is expected to be valid JSON, which mandates UTF-8 encoding.

↑ Back to top