Chapter 6. Retrieving Data with the PuppetDB API
In the previous chapter, we learned how to set up PuppetDB. Now, it's time to put it to work. PuppetDB is more than just a storage engine; it also contains a powerful query API that allows you to interactively query data about your Puppet infrastructure. By using a combination of REST calls with the provided query language, you will be able to find enormous amounts of data related to your Puppet-managed infrastructure.
In this chapter, we're going to take a look at the following topics:
The hows, whats, and whys; a brief introduction to the query API
Exploring and using endpoints
Getting acquainted with some basic queries
By the end of this chapter, you should be fully comfortable working with the PuppetDB API and should be able to select the appropriate data sources and construct queries to explore your own data.