CMK version: 2.3.0p27
OS version: Debian 12
When creating a rule via the api the parameters send do not match the parameters we get back when quering the the rule. I.e I create the rule with
session.post(
url,
json = {
...
"host_labels":[
{
"key": "os",
"operator": "is",
"value": "linux"
}
]
...
)
but when quering the rule I recive
{
...
'host_label_groups': [{'operator': 'and', 'label_group': [{'operator': 'and', 'label': 'os:linux'}]
...
}
Is there a way to get the same value back I send ? Is this considered a Bug that will change ?