HomePhorge

(#5132) Provide a query REST interface for inventory
45a9a97285d9Unpublished

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.

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe559b48d51c5: Merge branch 'feature/next/5148-fix' into next
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Robinson <matt@puppetlabs.com> committed rPU45a9a97285d9: (#5132) Provide a query REST interface for inventory (authored by Matt Robinson <matt@puppetlabs.com>).Oct 29 2010, 12:09 AM