Chapter 11. Chef API and Search

Chef provides a simple and wonderful API to interact with it and get information about different objects that are stored within it. The API provided by Chef is the REST API, and hence it can be used with any programming language that provides support to make HTTP calls. However, one of the more fundamental questions is: why would we even want to learn about API interfaces provided by Chef?

Well, most of the time, we will be writing cookbooks for handling the installation and configuration of different aspects of our infrastructure. At other times, we'll be managing information stored in data bags, or defining environments and roles. However, there will be a time when configuration of a machine or service won't be ...

Get Mastering Chef now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.