We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #6966: Expose HW/SW inventory via HTTP API

ComponentHW/SW-Inventory
TitleExpose HW/SW inventory via HTTP API
Date2019-01-18 11:41:10
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0b1
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

Check_MK already has an API to retrieve the HW/SW inventory (see Werk #3585), but it is totally separate from the rest of our usual HTTP API. Now a new get_inventory call has been added to the latter, and this is now the recommended way to retrieve the HW/SW inventory.

The get_inventory call has one mandatory key hosts, which has to be a list of host names for which the inventory should be retrieved. In addtion, two optional keys are supported:

  • paths: a list of inventory paths for filtering the inventory tree
  • site: the site to use