How to get the IP addresses of the instances of the same application

Malmee Weerasinghe

When I push an application to cloud foundry, "cf scale myApp -i 5" will increase the number of instances of my application to 5. I want to get the ip addresses of these instances. Is there any way to get the ip addresses and ports of the 5 instances of my application? Is there any API?

I am running cloud foundry with diego in bosh-lite. In documents I have seen that garden API gives container information, but how to call the garden API? I highly appreciate your responses regarding this issue.

Thank you.

Join { to automatically receive all group messages.