cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Alert Notification service: Is it possible to call a REST API through the SAP Cloud Connector

0 Likes
1,238

Hello,

In SAP Alert Notification it is possible to create webhook actions.

I'm wondering if it is possible to use this action to call an OData service through the Cloud Connector in order to reach an on premise server.

If anyone already succeed to do that, i'm interested.

Thank you,

Nicolas

Accepted Solutions (0)

Answers (2)

Answers (2)

BiserSimeonov
Product and Topic Expert
Product and Topic Expert

Hi Nicolas,

Thank you for the question raised, quite interesting indeed!

To be frank I did not have such use case so far but of course, I am open to explore it and assist you. Just to get a better understanding: is your ultimate goal to ingest events from an on-premise solution to the SAP Alert Notification service or it is the way around - based on a condition met you would like Alert Notification service to trigger an action towards the on-premise solution? I raise this question as depending on the use case perhaps there might be more suitable a different SAP BTP tool.

Going to the specific question: yes, Alert Notification service supports webhooks , most likely you will need a Webhook with Basic Authentication action type assuming you will be calling the SAP Cloud Connector Monitoring API. If you are interested in Cloud Connector Monitoring API it is also worthy to check out the capabilities available in SAP Cloud ALM - Health Monitoring for SAP Cloud Connector .

On the other side, in case you want to a cloud solution (Alert Notification) to be connected to an on-premise solution I assume it will about the scenario described here: https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/cloud-connector#loioe6c7616abb5710148...

I hope the info provided helps and I look forward to hearing a feedback from you.

Kind regards,

Biser Simeonov

BenPatterson
Active Participant
0 Likes
Hi Biser, I am also looking into this scenario where you can configure an Alert Notification Service webhook to connect to an on-premise system via cloud connector and a destination. Similar to the question on the original post. Do you know if it is possible to directly use a destination in the ANS configuration for the url of a webhook?
0 Likes

Hi,

In fact the best solution would have been to use the send email with custom smtp server because i want to do at the end. But my company stmp server is not open to internet and will not be.

So my ultimate goal is:

  • SAP automation pilot command notify an issue in our BTP configuration and trigger an alert notification event
  • Notify the relevant people by email and for this step i want to call an OData service in an on premise server through the could connector.

Else i have another solution, it's to use the alert notification store, and to read it from the on premise sap server. But i would prefer to do push over pull.

Regards,

Nicolas

Ulrich_Schmidt1
Product and Topic Expert
Product and Topic Expert

Another idea, not sure whether it will work in your scenario:

The Cloud Connector also provides a plain TCP tunnel. Perhaps you can use that to call the on-premises SMTP server directly via SMTP protocol and send the emails that way.