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

SAP CPI API Message Processing Logs

ybuc
Explorer
0 Likes
6,448

Good afternoon,

I'm really not a SAP person and I'm my target is to download some MPL data from the current existing API.
https://api.sap.com/api/MessageProcessingLogs/resource/Logs

My problem is not about the API it's self but it is how to authorize my self to reach the API.

Do I need any APIKey with read grants or do I need to authenticate with user and password?

If any APIKey is needed, where is the piece of document from SAP CPI that explain that?


In previous experience (with other platforms) I was generating a Api token and that was good enough to read data from the API

Thank you to anybody who can help me here

View Entire Topic
OlgenH
Participant
0 Likes

Hi Yann

the documentation link that you have provided lists the authentication method as basic authorisation which would work but of course it is not the best way. If you use this approach your user will need role the MonitoringDataRead to be assigned in SAP BTP

There is another link in the page you have found which explains how to setup an OAuth client in SAP BTP. This is the recommended approach.

https://help.sap.com/docs/cloud-integration/sap-cloud-integration/message-processing-logs?locale=en-...

If you don't have access to SAP BTP an admin has to create a service key (which contains client id/client secret and token endpoint) in the subaccount where CPI is deployed.

Kind regards

Olgen