Get cookbooks

The Get Cookbooks activity retrieves name and version information about cookbooks installed on a Chef server.

The activity stores the retrieved cookbook information in the cookbooks sensor script variable as an array of JavaScript objects. Each object in the array contains the following fields:

Table 1. Array object fields
Object Definition
name The name of the cookbook
version The version of the cookbook

For more information, see the Chef cookbook documentation at

Table 2. Results table
Result Definition
Success The Chef request was successful
Failure The Chef request failed, the Chef server was unavailable, or the Chef server rejected the supplied credentials

The Get Cookbooks activity uses only shared input variables.