Werk #20218 · Dec 1, 26
REST API: configure the data backend in distributed setups (unstable)
The REST API endpoint family Data backend now covers the configuration of data backends in distributed setups. The endpoints are part of the unstable API version in Checkmk Ultimate and Checkmk Ultimate with multi-tenancy. They are documented in Help > REST API > Documentation after switching to the unstable version.
Endpoints
PATCH /domain-types/data_backend/actions/update/invokeconfigures the local data backend instance of a site. Besides ports and memory limit, it now setsremote_accesson the central site andcentral_accesson a remote site.PATCH /domain-types/data_backend/actions/update_feature_locations/invokeis new. Per site, it sets infeatureswhere each feature (telemetry,synthetic_monitoring) stores its data:local,centralordisabled. Storing a feature on the central site also requiresaddress_seen_by_central. A feature that the license of the site does not include is refused.GET /domain-types/data_backend/actions/get/invokenow also returns the location of each feature infeatures.POST /domain-types/data_backend/actions/test_central_connection/invokeis new. It tests the connection of a remote site to the central data backend without saving or activating anything. It requires the permission to activate changes and starts or restarts the data backend of the central site only withallow_restart.GET /domain-types/data_backend/actions/show_central_connection_test/invokeandPOST /domain-types/data_backend/actions/abort_central_connection_test/invokeare new. They show the progress and result of your last connection test and abort it.
Implied changes
Both PATCH endpoints now check the implied changes of a request: changes to settings you did not send that the resulting configuration needs.
For example, disabling the data backend instance of the central site sets the features that remote sites store there to disabled.
Without "accept_implied_changes": true, such a request fails with status 409 and lists the implied changes in ext.implied_changes.
With it, the request makes them and returns status 200 with the list in implied_changes.
Details
- Class:
- New Features
- Level:
- Prominent
- Component:
- REST API
- Versions:
- 3.0.0b1Not yet releasedUltimateUltimate + MTCloud