icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

icinga2 API call example error in documentation

Open carraroj opened this issue 1 year ago • 0 comments

Describe the bug

Following example API curl command in the documentation is not correct and returns an error: curl -k -s -S -i -u root:icinga -H 'Accept: application/json' \ -X POST 'https://localhost:5665/v1/objects/hosts/example.localdomain' \ -d '{ "restore_attrs": [ "address", "vars.os" ] }, "pretty": true }'

The error is the '}' after "var.os" custom_variable and should be remove that the call gets success.

carraroj avatar Feb 15 '24 15:02 carraroj