Splunk AppDynamics

Oauth support by HTTP Template

CommunityUser
Splunk Employee
Splunk Employee

I'm working on AppDynamic and ServiceNow integration : new serviceNow ticket by RESTful API when APPDynamic alert is triggered.

My serivceNow instance running on OAuth authentication method, here is an example of the authentication:

https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/integrate/inbound-rest/referenc...

I'm following this sample for my integration:

https://community.appdynamics.com/t5/tkb/articleprintpage/tkb-id/knowledge-base/article-id/118

My question is : how can I catch response value in HTTP Template and pass it to other templates?

Thanks,

Labels (3)
Tags (1)
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

I have finished a simple application for OAuth authentication sample for reference.

https://github.com/NetBrainDev/AppDynamics-CustomAlert

I'll add detail description later.

Thanks,

Update this on airplane, Because of some legal stuff, I have to remove my sample shortly. I would like to provide another sample once I have minutes. Sorry for the inconvenience.

View solution in original post

Saradhi_Pothara
Communicator

Hi Kevin,

There is no way to pass reponse of one HTTP template to another in Controller unless the API being called itself is coded in a way to invoke another API. We can only define success and failure criteria based on response.

https://docs.appdynamics.com/display/PRO42/HTTP+Request+Actions+and+Templates

Regards,

Saradhi

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Is there any solution for the OAuth setup?

Thanks,

0 Karma

Saradhi_Pothara
Communicator

Hi Kevin,

Currently there is no way to achieve this using the HTTP request templates.

@Satish.Muddam Our ServiceNow extensions expert is looking at providing this feature to integrate with OAuth using the Service Now REST API alerting extension but there is no ETA on this yet.

https://www.appdynamics.com/community/exchange/extension/appdynamics-servicenow-rest-api-alerting-ex...

Regards,
Saradhi

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks for the update.

I'm now working on a customize alert to figure it out. Hope it works for my case.

0 Karma

Saradhi_Pothara
Communicator

Hi Kevin,

Once you configure the custom alert could you please share your solution here so that it would help other customers till the OAuth support is implemented?

Regards,

Saradhi

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Sure, I would like to share my solution on github (code) and update the link here.

Thanks,

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I have finished a simple application for OAuth authentication sample for reference.

https://github.com/NetBrainDev/AppDynamics-CustomAlert

I'll add detail description later.

Thanks,

Update this on airplane, Because of some legal stuff, I have to remove my sample shortly. I would like to provide another sample once I have minutes. Sorry for the inconvenience.

Saradhi_Pothara
Communicator

Thank you Kevin.

Regards,
Saradhi

0 Karma
Get Updates on the Splunk Community!

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...

Leverage Cisco Talos Threat Intelligence Across Splunk Security Products

Leverage Cisco Talos Threat Intelligence Across Splunk Security Products   Security Edition   Have you ...

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience Tune in to What’s New in Splunk Enterprise ...