Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
We do not have REST API to delete the health rule. However, here is the way to do delete health rules:
Select id, name from policy where name like '%health_rule_name%';
curl -i --user admin@customer1:admin http://localhost:8090/controller/auth?action=login
HTTP/1.1 200 OK
cache-control: no-cache, no-store, max-age=0, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=8edd9e48f2ec26cbeeb6f24126b5; Path=/controller; HttpOnly
Date: Fri, 28 Jul 2017 11:21:15 GMT
curl -X POST -H "Cookie:JSESSIONID=8edd9e48f2ec26cbeeb6f24126b5;" -H "X-CSRF-TOKEN:46f1d4590d4955d55a1428e53b8d495fd57bdcd7" -H "Content-Type: application/json" -H "Accept: application/json" http://localhost:8090/controller/restui/health_rules/delete -d [Health_rule_ids]
PS: replace localhost, port and credentials and Health_rule_ids as required.