Splunk AppDynamics

Action Suppression through API example

Jordan_Roth
New Member

I am having trouble using curl to POST a new action suppression that disables alerts for the entire application.

I am trying to create a curl command to add to our existing upgrade and migration scripts so the alerts are disabled during the process.

Does anyone have an example of the curl command to do this?

I have tried using the documentation from :

https://docs.appdynamics.com/display/PRO42/Alert+and+Respond+API#AlertandRespondAPI-CreateandDeleteA...

Labels (3)
0 Karma

Narendra_Reddy
Explorer

Hi Jordan,

Here is a sample working request which works on my local: 

curl -X POST -H "Content-type: application/vnd.appd.cntrl+json;v=1" -d '{"name": "This is a test by Narendra","timeRange": {"startTimeMillis": "2017-06-10T16:50:00-0800","endTimeMillis": "2017-06-11T17:00:00-0800"}, "affects": {"type": "APP"}}' --user test@customer1:test http://localhost:8090/controller/api/accounts/2/applications/5/actionsuppressions

If you still have issue, please share the curl command and the output to debug further.

- - -

With Regards, 

L. Narendra Reddy

0 Karma
Get Updates on the Splunk Community!

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 ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...