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

Cloud Foundry API access from Postman

souvikroy
Participant
0 Likes
1,606

I need to access multiple cloud foundry APIs e.g. List all the spaces by . I am trying to call the API from Postman as I need to call the same API from a custom application.

I am able to access the cloud foundry info API with all details as it does not need the bearer token but wherever it needs bearer token, I am stuck.

API documentation : https://apidocs.cloudfoundry.org/2.1.0/spaces/list_all_spaces.html

But I am not able to authenticate the request from postman. How will I be able to generate the bearer token from Postman for the API listed above?

We use custom IDP and SSO to login to cloud foundry. From CF CLI, I am easily able to login to space.

View Entire Topic
Jwan_24
Participant
0 Likes

Hello Souvik,

a hint to solve it: you need to send a GET request to the token service url. This url will output the bearer token, that gets generated

Test it and let me know

BR
Jwan