June 2014
Intermediate to advanced
328 pages
7h 26m
English
PuppetDB uses a Command/Query Responsibility Separation (CQRS) pattern:
APIs are versioned (v1, v2, v3, and so on), and the most recent ones add functionalities and try to keep backward compatibility.
The URL for queries is structured as follows:
http[s]://<server>:<port>/<version>/<endpoint>?query=<query>
The available endpoints for queries are metrics, fact-names, facts, nodes, resources, reports, events, event-counts, aggregate-event-counts, and server-time.
Query strings are URL-encoded JSON arrays in prefix notation, which makes them look a bit unusual. ...