Hi @all,
I started using the REST API and I am experiencing some troubles. I successfully create that host via API:
the variables shown are created via the rest api, for example:
curl -k -s -u root -H 'Accept: application/json' -X POST 'https//localhost:5665/v1/objects/hosts/hostname' -d '{ "attrs": { "vars.testx": "test" }, "pretty": true }'
the var is created, but my apply rule is not working:
apply Service "test" {
[...]
assign where host.vars.testx
}
I would be happy if someone had an idea on this. Maybe it has something to do with mixing rest api and config files?