Search API

Please see API for a full list of supported collections. See Foremancli for an example program that uses the search API

When you return a full list of elements you should be able to pass a search:
collectionname?search=fieldidentifier = value"

Booleans:

AND
OR

Examples:

  • Hosts: "domain = domain.com AND class = squid"
  • Hosts "domain = domain.com AND facts.architecture = x86_64 AND class = module::class"
  • Classes: "name = squid"
  • Domains "name = domain.com"

You can probably try to find the right search filter using the UI auto completer feature.

Additional documentaion