Docs: PuppetDB 1 » Spec » Facts Wire Format


PuppetDB 1 » Spec » Facts Wire Format

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