Werk #6966: Expose HW/SW inventory via HTTP API
|Titel||Expose HW/SW inventory via HTTP API|
|Checkmk-Editon||Checkmk Raw (CRE)|
|Kompatibilität||Kompatibel - benötigt kein manuelles Eingreifen|
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