The code example shows how to get a bearer token to authenticate against the Cloud Foundry API
Prerequisites are the REST connection to the Cloud Foundry API must be configured in vRealize Orchestrator.
The used action getConfigElementAttributeValue can be found here: https://code.vmware.com/samples/6825/