Skip to content
Dan Ryan edited this page Jun 13, 2012 · 1 revision

Clients

Get a list of all clients:

Spice.clients

Get a list of clients filtered by a certain criteria:

Spice.clients(:q => "name:foo*")

Get a single client:

Spice.client("foo")

Cookbooks

Get a list of all cookbooks:

Spice.cookbooks

Get a single cookbook:

Spice.cookbook("foo")

Data Bags

Get a list of all data bags:

Spice.data_bags

Get a list of data bags filtered by a certain criteria:

Spice.data_bags(:q => "name:foo*")

Get a single data bag:

Spice.data_bag("foo")

Get a data bag item:

Spice.data_bag_item("name", "id")

Environments

Get a list of all environments:

Spice.environments

Get a list of environments filtered by a certain criteria:

Spice.environments(:q => "name:foo*")

Get a single environment:

Spice.environment("foo")

Nodes

Get a list of all nodes:

Spice.nodes

Get a list of nodes filtered by a certain criteria:

Spice.nodes(:q => "hostname:app*")

Get a single node:

Spice.node("foo")

Roles

Get a list of all roles:

Spice.roles

Get a list of nodes filtered by a certain criteria:

Spice.roles(:q => "name:app*")

Get a single node:

Spice.role("foo")
Clone this wiki locally