Summary
In this chapter, we have fully explored the PuppetDB API. We've taken a look at the role that the API endpoints play and how you can use simple command-line tools to query it. We've examined the makeup of a typical query and how we can use operators to be selective about our data. Finally, we've taken a look at some of the more practical ways in which we can put the PuppetDB query API to use, and we have examined how it can be used to increase the visibility of your infrastructure.
In the next chapter, we're going to use some simple Ruby code to create a simple reporting system, utilizing the features of the PuppetDB API to power it.