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

Component REST API
Title Unknown sites in host_config endpoints will now be marked as such
Date Nov 28, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & 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.

To the list of all Werks