Support Questions
Find answers, ask questions, and share your expertise

Ambari API post attributes for disable or enable alerts.

New Contributor

I am looking for a API post command to disable and enable alert for a particular component for example hive_metastore_process or hive_server_process. I have seen the API to modify the alert definitions using POST command and not for Enable/Disable. Please can someone help with the details for POST?


Super Collaborator

PUT api/v1/clusters/<clusterName>/alert_definitions/<id>

  "AlertDefinition/enabled": false

New Contributor

I am new to this can you please provide in details I am looking for automation script for stoping and starting hadoop ambari. first I am looking for disabling alerts using script can you please provide solution.

New Contributor

Thanks Jonathan. That worked and I could disable or enable specific alerts.

; ;