Request: Get environment for an app
FulcrumTeam opened this issue · 4 comments
FulcrumTeam commented
Not sure if there is a way to get the environment for an app like so: http://v3-apidocs.cloudfoundry.org/version/3.84.0/index.html#get-environment-for-an-app
We need to get the apps bound to a service, and that seems to be the way in the cf v3 api. Can we get this same functionality added to this great package? Or am I missing something in the docs where this is functional?
Thanks!
antechrestos commented
@FulcrumTeam I will take a look when I have time 😄
antechrestos commented
Released in 1.13.0
FulcrumTeam commented
Could you please post a quick example on it's usage? I don't quite understand how to call this. Thank you so much for your time
antechrestos commented
something like
# [...] build client
# Loads single environment
single_env = client.v3.apps.get_env('app-id')
# or iterate through applications and get each env
for app in client.v3.apps:
env = client.v3.apps.get_env(app['guid'])