Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 700 Bytes

facts_format.markdown

File metadata and controls

32 lines (21 loc) · 700 Bytes
title layout canonical
PuppetDB 1.2 » API » Facts Wire Format
default
/puppetdb/latest/api/wire_format/facts_format.html

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.