Hi,

Since Stratos 4.1 is based on the Application model, shall we provide an
API to list the details (instances) of an application? Or do we still need
to list individual cluster instances?

On Tue, Mar 17, 2015 at 9:59 AM, Imesh Gunaratne <im...@apache.org> wrote:

> Hi Shaheed,
>
> Thanks for pointing this! Yes in 4.1.0 API we do not have a method to
> query instances of a cluster. I think we need to add it. @Devs: Anyone
> would like to contribute to this?
>

> Thanks
>
> On Tue, Mar 17, 2015 at 4:59 AM, Shaheedur Haque (shahhaqu) <
> shahh...@cisco.com> wrote:
>
>>  Hi,
>>
>>
>>
>> In Stratos 4.0.0, I could get a list of instances running against a
>> subscription with a REST call like this:
>>
>>
>>
>> 'GET', '/stratos/admin/cluster/clusterId/{}'.format(cluster)
>>
>>
>>
>> However, in 4.1.0, the commands describe-application and describe
>> application-runtime equate to:
>>
>>
>>
>> 'GET', 'applications/{}'.format(subscription)
>>
>> #
>>
>> # The reply looks like this:
>>
>> #
>>
>> # {u'status': u'Deployed', u'alias': u'cartridge-proxy', u'multiTenant':
>> False, u'applicationId': u'cartridge-proxy', u'components': {...}}
>>
>> #
>>
>>
>>
>> And
>>
>>
>>
>> 'GET', 'applications/{}/runtime'.format(application)
>>
>> #
>>
>> # The reply looks like this:
>>
>> #
>>
>> # {u'status': u'Active', u'multiTenant': False}
>>
>> #
>>
>>
>>
>> Is there some other way to list the instances?
>>
>>
>>
>> Thanks, Shaheed
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
> * <http://wso2.com/>*
>
>
>

Reply via email to