Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari API post attributes for disable or enable alerts.

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?

3 REPLIES 3
Highlighted

Re: Ambari API post attributes for disable or enable alerts.

Super Collaborator

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

{
  "AlertDefinition/enabled": false
}

Re: Ambari API post attributes for disable or enable alerts.

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.

Re: Ambari API post attributes for disable or enable alerts.

New Contributor

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

Don't have an account?
Coming from Hortonworks? Activate your account here