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

How to authenticate Cloud Platform API

tobias_mitter2
Explorer
4,464

Hello,

we want to use the cloud foundry platform api (http://v3-apidocs.cloudfoundry.org/version/3.81.0/index.html) to do some automation.

The API is OAuth2 protected. In order to authenticate, we would need to create an oauth client and use the credentials to get a token. We did not find any way to do that.

How can we access the api?

There is one way for testing we found, as according to the cloud foundry documentation you can get an oauth token with the CLI command "cf oauth-token". That is the only way we found to actually being able to call the api, but this is only ok for some quick testing, but for a live scenario we need a REST way to get a token.

Cloud Foundry documentation describes some way to create a client, but this does not work on SAP Cloud Foundry, as we don't have access to tools and infrastructure.

Thanks and regards,

Tobias

View Entire Topic
gregorw
SAP Mentor
SAP Mentor
0 Likes

HI Tobias,

maybe you start with a search at api.sap.com with the keywords cloud foundry. From there you should find more documentation.

Best regards
Gregor

tobias_mitter2
Explorer
0 Likes

Hi Gregor,

thanks but we have searched and tried basically everything. I am on and off this topic for half a year now. There is no documentation from SAP regarding this topic. At the moment I believe I haven't overlooked anything, that's why I finally postet the question here in the hope that we are not the only ones trying to use this api for some analytics and automation and maybe somebody else digged out some info.

Best regards,

Tobias

gregorw
SAP Mentor
SAP Mentor
0 Likes

Hi Tobias,

according to the current release notes SAP Cloud Platform is running on Cloud Foundry 12.33.0. Maybe the Cloud Foundry API's are helpful for you:

https://apidocs.cloudfoundry.org/12.33.0/

Keep us posted about your progress.

Best regards
Gregor