Hello everyone,
I am trying to disable/enable event handler feature of a specific service by using API . However, I couldn’t make it .
Extra note : (I am using Icinga director).
I tried to curl like this :
curl -k -s -u credential:credential -H 'Accept: application/json' -X PUT -d '{"attrs":{"enable_event_handler": false}}' https://localhost:5665/v1/objects/services/[ServiceName]?pretty=1
However it returns an error like below :
"results": [
{
"code": 500,
"errors": [
"Error: Invalid Service name.\n"
],
"status": "Object could not be created."
}
]