Werk #7760: Web API: Changed format of rules in get_ruleset/set_ruleset

Component Setup
Title Web API: Changed format of rules in get_ruleset/set_ruleset
Date Jun 4, 2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.6.0b1
Level Prominent Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

The Web API calls get_ruleset and set_ruleset, that were added with #4699 in Checkmk 1.5 have been changed in an incompatible way. If you use these API calls in your scripts, you will have to change these script to be compatible with Checkmk 1.6 and newer.

The change was caused by the change of the internal rule data structure, which is described in detail in #7352.

The API calls now work with the internal rule format with the difference that the host_folder condition is removed from the rules returned by get_ruleset and automatically added to the rules that are written with set_ruleset.

To the list of all Werks