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

SAP Cloud Integration's API testing

0 Kudos
3,106

Hi Experts,

I would like to do the testing on standard APIs available in SAP Cloud Integration for monitoring and I am using trial account for this test.

Based on the following help page, I have generated the service key and from the service key I took the base URI to form a actual URL to fetch the Message Processing Logs of SAP Cloud Integration.

https://help.sap.com/docs/CLOUD_INTEGRATION/368c481cd6954bdfa5d0435479fd4eaf/ca75e12fc5904d96a038aef...

Actual URL with Base URL : https://c924532ftrial.it-cpitrial06-rt.cfapps.us10-001.hana.ondemand.com/odata/v2/MessageProcessingL...

Whenever I call this URL, I am getting "404 Not Found: Requested route ('c924532ftrial.it-cpitrial06-rt.cfapps.us10-001.hana.ondemand.com') does not exist." error. Even in API hub try out page and in SAP Cloud Integration flow.

API Hub:

Browser:

Could you please help me on this issue?

Kind regards, Vijay

Accepted Solutions (1)

Accepted Solutions (1)

Hi Experts,

I just noticed that I used the runtime url "https://c924532ftrial.it-cpitrial06-rt.cfapps.us10-001.hana.ondemand.com/api/v1" instead of tenant management url "https://c924532ftrial.it-cpitrial06.cfapps.us10-001.hana.ondemand.com/api/v1".

Thanks for your support, I can now fetch the records from SAP Cloud Integration using standard api's.

Kind regards, Vijay

Starky83719
Discoverer
0 Kudos
After using this URL, it is asking for credentials, which exact credentials we need to put there. Also from postman it is giving me 401 for using service key created in BTP

Answers (2)

Answers (2)

MortenWittrock
SAP Mentor
SAP Mentor

Hi Vijay

The host name (c924532ftrial.it-cpitrial06-rt.cfapps.us10-001.hana.ondemand.com) was copied verbatim from the "url" element in the service key? What you did was correct, just keep in mind that the proper root is /api/v1, not /odata/v2.

Also, you are creating the service key on an instance of the Process Integration Runtime service, right?

I just tried this approach in a trial account, and it worked as expected.

Regards,

Morten

0 Kudos

Hi Morten,

Thank you for checking and responding.

Yes, I copied the host url from the Process Integration Runtime service's service key. Because I was getting errors with api/v1, I also tried with odata/v2. Thank you, however, for informing me.

I'm still having problems, and I'm not sure what I did wrong. I am just checking again.

Kind regards, Vijay

anil_sumanth_y
Explorer
0 Kudos

hi Vijay,

The endpoint url will be as <CPI-Tenant_URL>/api/v1.

Regards,

Anil

0 Kudos

Hi Anil,

Thanks for your response.

Yes, I tried with api/v1 as well. But no luck.

Kind regards, Vijay