kman_52500
Jun 07, 2018Nimbostratus
How to disable services via iControlREST
Hello,
I'm trying to figure out how to disable a service via iControlREST. I am able to stop/start services, but not disable/remove.
Example:
curl -u USER -d '{"command": "disable", "name": "named"}' -H "Content-TYpe: application/json"
{"code":501,"message":"0 is not supported ","errorStack":[]}
start/stop/restart all work.
I suspect I need something other than "command" for that? Or maybe I'm supposed to put the resource-id in the URL, however it looks like that URL accepts ID and the docs don't show how to get the resource-id.
Thanks