Werk #12273: API: modifications for downtime endpoint

Komponente Core & setup
Titel API: modifications for downtime endpoint
Datum 03.03.2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.0.0b8 2.1.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

This werk introduces a few changes to the downtime endpoint. Proper status codes are now returned when trying to set a downtime on non existing host and service groups. A 422 status code is returned when the provided query for setting a service or host downtime returned an empty list. The type 'by_id' is now an enabled option for the delete endpoint. The parameters 'hostname' and 'services' in the delete endpoint were renamed to 'host_name' and 'service_descriptions' to introduce more consistency. Previously, using the delete endpoint with a host_name via the delete_type 'params' resulted in the deletion of all downtimes that contained the specified host_name, regardless of service or host. This has now been changed to be restricted to host downtimes only.

Zur Liste aller Werks