Werk #15434: agent: return better respones for GET collection

Komponente REST API
Titel agent: return better respones for GET collection
Datum 08.03.2023
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p25 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously when calling the agent GET collection endpoint, the value attribute would only contain the following information for each agent

{
    "domainType": "dict",
    "title": "e660531752c87c6c"
}

It now contains the following

{
    'domainType': 'agent',
    'extensions': {},
    'id': 'a3e050556d2455c2',
    'links': [
        {
            'domainType': 'link',
            'href': 'http://localhost/heute/check_mk/api/1.0/objects/agent/a3e050556d2455c2',
            'method': 'GET',
            'rel': 'self',
            'type': 'application/json'
        }
    ],
    'members': {},
    'title': 'Agent a3e050556d2455c2'
}

Zur Liste aller Werks