Werk #13968: Unknown sites in host_config endpoints will now be marked as such

Komponente REST API
Titel Unknown sites in host_config endpoints will now be marked as such
Datum 28.11.2022
Checkmk-Version 2.2.0b1 2.1.0p17
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Affected Editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p17 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Having a host configured with an unknown site would return a 500 status code error on endpoints such as "/domain-types/host_config/collections/all". This is common in a distributed monitoring environment. Instead the site field under the "extensions" and "attributes" key will now return the site id prefixed with "Unknown Site:". This matches the behaviour of the GUI.

Zur Liste aller Werks