cancel
Showing results for 
Search instead for 
Did you mean: 

Getting organizational informations (Subaccount-Id, -Name, Org-Id,...) in an cap application

haykma
Participant
0 Kudos

Hi everybody,

i would like to know if there is an easy way (or a btp-service) to get organizational information about subaccount-id, name, organisation, space, etc.) where my cap-app (NodeJs) is deployed on (cloud foundry).

kind regards
Matthias

View Entire Topic
jreimann
Participant

Hi mhay,

You can call

JSON.parse(process.env.VCAP_APPLICATION)

to get the information.

Kind regards
Johannes

haykma
Participant
0 Kudos

Hi. Found cfenv npm-module as a good alternative. It samples data from VCAP_APPLICATION and other data.