Werk #13634: REST API: Creating hosts via API does not trigger agent baking by default anymore
Component | REST API | ||
Title | REST API: Creating hosts via API does not trigger agent baking by default anymore | ||
Date | Feb 1, 2022 | ||
Level | Trivial Change | ||
Class | Bug Fix | ||
Compatibility | Incompatible - Manual interaction might be required | ||
Checkmk versions & editions |
|
The REST API endpoints for creating hosts (Create a host, Create a cluster host, Bulk create hosts) were triggering and agent baking job for the new hosts after configuring the hosts.
This may be useful in some cases, but in the most cases it is not intended to do it. Since the job needs some resources for the baking and also holds locks during baking, the job might slow down subsequent API calls.
To address both needs we now added an optional query parameter ?bake_agent=[1|0] to the API calls mentioned above.
The default behaviour has been changed: If you don't specify the parameter, the agents are not baked anymore. Only when you call the endpoints with ?bake_agent=1, the agent baking job will be started.