Re: my app needs to get the number of instances in which its running, (in runtime my app uses this info in my program logic)


CF Runtime
 

The "instances" attribute from the api will give the current number of
instances that should be running. If a user has recently changed this via
the API, the actual number of running instances may be different.

Using the cf cli by shelling out from your app is always a good way to
access the api.

Joseph
CF Release Integration Team

On Wed, Sep 30, 2015 at 7:16 AM, zooba Sir <myfakename90(a)gmail.com> wrote:

will this "instance" attribute gives number of successfully running
instances at the moment or just the maximum no of instances for the app as
configured in manifest.yml

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.