Thanks for the response, i tried to use below curl command to turn on/off maintenance mode but failed.
curl -u user -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo":{"context:"Turn Off Maintenance Mode for host","query":"Hosts/host_name.in(host1,host2)"},"Body":{"Hosts":{"maintenance_state":"OFF"}}}' http://ambari_host:8080/api/v1/clusters/comcastdrcluster/hosts
can someone please advise if we have anyother commands that we can use to turn on/off maintenance mode.
Thanks
Reshma