HomePhorge

(#5132) Provide a query REST interface for inventory
23fc4db954c2Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#5132) Provide a query REST interface for inventory

This REST interface returns a list of nodes that match a fact query.
Fact queries can use (in)equality testing as a string comparison, and >,
<, >=, <= numerical comparisons. Multiple tests can be done as AND
comparisons, not OR.

The fact queries need to be prefixed by facts, and the comparisons other
than equality are specified with a .comparison_type after the fact name.

This will be better explained in the REST documentation on the website.

Searches that don't match anything now return empty array instead of a
404 error.

Conflicts:

spec/spec_helper.rb

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUab27da7967e1: Merge branch 'ticket/2.6.next/5935' into 2.6.next
Branches
Unknown
Tags
Unknown

Event Timeline

Paul Berry <paul@puppetlabs.com> committed rPU23fc4db954c2: (#5132) Provide a query REST interface for inventory (authored by Paul Berry <paul@puppetlabs.com>).Feb 17 2011, 11:59 PM