Splunk AppDynamics

Unable to enable health rule using curl command

chandan_gupta
New Member

curl -X PUT -d "enabled"=true --user usernme@account:password https://[Redacted].saas.appdynamics.com/controller/alerting/rest/v1/applications/Application-ID/health-rules/HealthRule-ID/ 

I am using this command to enable the health rule but no change is reflecting on Saas controller. 

^ Edited by @Ryan.Paredez to remove Controller URL. Please do not share your Controller URL on Community posts for security and privacy reasons.

Labels (3)
Tags (3)
0 Karma
1 Solution

Morelz
Builder

Hi Chandan

You can use the below, should give you what you require

curl --user user@account:password -X PUT -H "Content-Type: application/json" -d '{"enabled":"true"}' https://<AppD FQDN>/controller/alerting/rest/v1/applications/<application-id>/health-rules/<healthrule-id>/configuration

Ciao

View solution in original post

0 Karma

Morelz
Builder

Hi Chandan

You can use the below, should give you what you require

curl --user user@account:password -X PUT -H "Content-Type: application/json" -d '{"enabled":"true"}' https://<AppD FQDN>/controller/alerting/rest/v1/applications/<application-id>/health-rules/<healthrule-id>/configuration

Ciao

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...