<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to access Cloud Foundry Controller API? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144363#M4539474</link>
    <description>&lt;P&gt;Hi Venu,&lt;/P&gt;&lt;P&gt;I had basically the same question a few days ago.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13004003/how-to-authenticate-cloud-platform-api.html"&gt;https://answers.sap.com/questions/13004003/how-to-authenticate-cloud-platform-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Didn't get a response until now. You can get a token with cli and use it in postman to access the api. It works well, I can use the whole range of apis (http://v3-apidocs.cloudfoundry.org/version/3.81.0/index.html). It is just that I can not find a way to authenticate in a REST way (without CLI). So it is really frustrating.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 12:27:28 GMT</pubDate>
    <dc:creator>tobias_mitter2</dc:creator>
    <dc:date>2020-03-23T12:27:28Z</dc:date>
    <item>
      <title>How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaq-p/12144361</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
  &lt;P&gt;After working for quite some time on the Cloud Foundry CLI and SAP Cloud Platform Cockpit, i was thinking how to access Cloud Foundry using Cloud Foundry API.&lt;/P&gt;
  &lt;P&gt;I explored little bit, but have hard time to understand how to authenticate to CF API using postman.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://api.cf.eu10.hana.ondemand.com/"&gt;https://api.cf.eu10.hana.ondemand.com/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Need your advice on how i can get access token to access different Cloud Foundry APIs form Postman?&lt;/P&gt;
  &lt;P&gt;Thank you in advance,&lt;/P&gt;
  &lt;P&gt;Venu&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 03:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaq-p/12144361</guid>
      <dc:creator>former_member184876</dc:creator>
      <dc:date>2020-03-23T03:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144362#M4539473</link>
      <description>&lt;P&gt;Maybe the links to the Cloud Foundry API documentation in &lt;A href="https://blogs.sap.com/2018/04/23/sap-hana-xsa-controller-api-interaction/" target="_blank"&gt;SAP HANA XSA Controller API Interaction&lt;/A&gt; help you.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 06:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144362#M4539473</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-03-23T06:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144363#M4539474</link>
      <description>&lt;P&gt;Hi Venu,&lt;/P&gt;&lt;P&gt;I had basically the same question a few days ago.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13004003/how-to-authenticate-cloud-platform-api.html"&gt;https://answers.sap.com/questions/13004003/how-to-authenticate-cloud-platform-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Didn't get a response until now. You can get a token with cli and use it in postman to access the api. It works well, I can use the whole range of apis (http://v3-apidocs.cloudfoundry.org/version/3.81.0/index.html). It is just that I can not find a way to authenticate in a REST way (without CLI). So it is really frustrating.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 12:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144363#M4539474</guid>
      <dc:creator>tobias_mitter2</dc:creator>
      <dc:date>2020-03-23T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144364#M4539475</link>
      <description>&lt;P&gt;Hi Tobias,&lt;/P&gt;&lt;P&gt;Thanks for your response and pointing to your question. Yes. The token form CF CLI is working. But the JWT from XSUAA service instance (received through application binding) is rejected by Cloud Foundry API. Not sure if there is a way to access CF API through applicaitons.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 20:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144364#M4539475</guid>
      <dc:creator>former_member184876</dc:creator>
      <dc:date>2020-03-23T20:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144365#M4539476</link>
      <description>&lt;P&gt;Yes I tried every conceivable way...&lt;/P&gt;&lt;P&gt;Until just recently we had the same problem with the XSUAA API. There was also no way to use it until SAP finally released a "fix". Now you can create a XSUAA Instance with a special api service plan. When creating a service key for that instance you could finally get a working client_id and client_secret to access the api. The CF documentation mentions one can use the CF UAA to get a token to use the plattform api and by using the access to XSUAA I tried to create a oauth client, but also didn't succeed. For the plattform api, you need specific authorizations (scopes) which xsuaa doesn't give you.&lt;/P&gt;&lt;P&gt;I just cannot image, why on earth we are the only ones who would like to use this api. It is absolutely necessary for an operation team.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 07:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144365#M4539476</guid>
      <dc:creator>tobias_mitter2</dc:creator>
      <dc:date>2020-03-24T07:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144366#M4539477</link>
      <description>&lt;P&gt;With your reminder for the service plan apiaccess I was able to find the documentation &lt;A href="https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/ebc9113a520e495ea5fb759b9a7929f2.html" target="_blank"&gt;Enable API Access to an XSUAA Configuration&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 08:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144366#M4539477</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-03-24T08:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144367#M4539478</link>
      <description>&lt;P&gt;It seems there is no solution yet, but there is one coming.&lt;/P&gt;&lt;P&gt;See this: &lt;A href="https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/3670474a58c24ac2b082e76cbbd9dc19.html"&gt;https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/3670474a58c24ac2b082e76cbbd9dc19.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just stumbled over it by accident. When I look at the supported scopes though, it seems it is only a part of the whole api. It doesn't even say which api (v2 or v3), it might even be that SAP is building a facade around it...have to check it out some time. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 11:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144367#M4539478</guid>
      <dc:creator>tobias_mitter2</dc:creator>
      <dc:date>2020-04-06T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144368#M4539479</link>
      <description>&lt;P&gt;Thank you Tobias for sharing this info. very helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 16:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144368#M4539479</guid>
      <dc:creator>former_member184876</dc:creator>
      <dc:date>2020-04-06T16:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144369#M4539480</link>
      <description>&lt;P&gt;Did anyone find an answer to the question to do it in complete REST way&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 13:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144369#M4539480</guid>
      <dc:creator>pavithra</dc:creator>
      <dc:date>2020-12-02T13:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144370#M4539481</link>
      <description>&lt;P&gt;Does this help ?&lt;/P&gt;&lt;P&gt;&lt;A href="http://v3-apidocs.cloudfoundry.org/version/3.92.0"&gt;http://v3-apidocs.cloudfoundry.org/version/3.92.0&lt;/A&gt;/&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Saurav&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 17:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144370#M4539481</guid>
      <dc:creator>former_member210955</dc:creator>
      <dc:date>2020-12-02T17:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144371#M4539482</link>
      <description>&lt;P&gt;Does this help ?&lt;/P&gt;&lt;P&gt;&lt;A href="http://v3-apidocs.cloudfoundry.org/version/3.92.0"&gt;http://v3-apidocs.cloudfoundry.org/version/3.92.0&lt;/A&gt;/&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Saurav&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 17:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144371#M4539482</guid>
      <dc:creator>former_member210955</dc:creator>
      <dc:date>2020-12-02T17:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144372#M4539483</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Did anyone found a solution for this ?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vijendra&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 08:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144372#M4539483</guid>
      <dc:creator>vijendra_pachoriya</dc:creator>
      <dc:date>2021-04-07T08:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144373#M4539484</link>
      <description>&lt;P&gt;The answer is a copy from here: &lt;A href="https://answers.sap.com/questions/13004003/how-to-authenticate-cloud-platform-api.html" target="test_blank"&gt;https://answers.sap.com/questions/13004003/how-to-authenticate-cloud-platform-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With the help of SAP:&lt;/P&gt;&lt;P&gt;The CF Cloud Controller API is currently not connected to XSUAA and thus it is not possible to obtain a token from there. Instead you have to directly call the CF UAA service and use a valid user (no service key) and the following parameters. You should then get a valid token with &lt;EM&gt;cloud_controller.read &lt;/EM&gt;and&lt;EM&gt; cloud_controller.write&lt;/EM&gt; scopes.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Endpoint&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://login.cf.eu20.hana.ondemand.com/oauth/token" target="test_blank"&gt;https://login.cf.eu20.hana.ondemand.com/oauth/token&lt;/A&gt; (BTP region dependent)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Basic Authentication&lt;/STRONG&gt;&lt;BR /&gt;user: cf&lt;BR /&gt;password:  (empty - no password)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parameters:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;username: &amp;lt;BTP user email&amp;gt;&lt;BR /&gt;password: &amp;lt;BTP user password&amp;gt;&lt;BR /&gt;client_id: cf&lt;BR /&gt;grant_type: password&lt;BR /&gt;response_type: token&lt;/P&gt;&lt;P&gt;An example CURL call:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl -v -XPOST -H"Application/json" -u "cf:" --data "username=&amp;lt;BTP user email&amp;gt;&amp;amp;password=&amp;lt;BTP user password&amp;gt;&amp;amp;client_id=cf&amp;amp;grant_type=password&amp;amp;response_type=token" &lt;A href="https://login.cf.eu20.hana.ondemand.com/oauth/token" target="test_blank"&gt;https://login.cf.eu20.hana.ondemand.com/oauth/token&lt;/A&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 12:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/12144373#M4539484</guid>
      <dc:creator>mike_zaschka</dc:creator>
      <dc:date>2022-01-11T12:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/13981275#M4898449</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/144369"&gt;@mike_zaschka&lt;/a&gt;,&lt;BR /&gt;hi all &amp;nbsp;and a Happy New Year 2025!&lt;/P&gt;&lt;P&gt;We have been struggling with this topic, as well, with some “sleepless nights” and accidentally found this community post and we are very happy to say, that you have provided this information to us – thanks.&lt;/P&gt;&lt;P&gt;Now, with providing a valid user, configured in the BTP (email / password) we have managed to get valid access-tokens.&lt;/P&gt;&lt;P&gt;Because your answer here is 3 years old, maybe you (or some one else in here) can give information, if accessing the Cloud Foundry can be managed differently. If we rely on this approach, this would mean, we would need some kind of a technical user on the BTP platform and from security perspective, can we some avoid providing passwords in plain text?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance,&lt;/P&gt;&lt;P&gt;M. Spyker&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 08:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/13981275#M4898449</guid>
      <dc:creator>marco_spyker</dc:creator>
      <dc:date>2025-01-09T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Cloud Foundry Controller API?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/14289837#M4933508</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/414581"&gt;@marco_spyker&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for posting this follow up. I also wondered if there is a way to authenticate to the Cloud Foundry API using X.509 Client Certificates. And with the help of the Blog Post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/t5/technology-blog-posts-by-sap/automation-with-the-btp-and-cf-command-line-interfaces-logging-in-with/ba-p/13571444" target="_blank"&gt;&lt;SPAN&gt;Automation with the btp and cf command-line interfaces: logging in with passcodes&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I made it work and used the passcode retrieved from the Cloud Identity Service Endpoint "/service/users/passcode" instead of the Password (cf_password .env Variable) in my Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/gregorwolf/bookshop-demo/blob/main/tests/cloud-foundry.http" target="_blank"&gt;https://github.com/gregorwolf/bookshop-demo/blob/main/tests/cloud-foundry.http&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;With the following destination I'm able to retrieve the passcode:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gregorw_0-1765631577261.png" style="width: 999px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/351728iD302FBA24525906E/image-size/large?v=v2&amp;amp;px=999" role="button" title="gregorw_0-1765631577261.png" alt="gregorw_0-1765631577261.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think I will build a CAP Plugin that uses this destination plus a destination to the CF API to simplify the access.&lt;/P&gt;&lt;P&gt;Best regars,&lt;BR /&gt;Gregor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Dec 2025 13:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-access-cloud-foundry-controller-api/qaa-p/14289837#M4933508</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2025-12-13T13:15:01Z</dc:date>
    </item>
  </channel>
</rss>

