You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Vishanth Balasubramaniam <vi...@wso2.com> on 2015/05/13 18:29:14 UTC

API method to update cartridge group

Hi Devs,

I have added a new rest API method to update cartridge group (STRATOS-1404
<https://issues.apache.org/jira/browse/STRATOS-1404>)

HTTP Method Resource Path

   PUT     /
<https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Describing+an+Auto-scaling+Policy+via+REST+API>cartridgeGroup

I did a test to update the cartridge group which is not used by any
application and verify the cartridge group update with the following curl
command

curl -X PUT -H "Content-Type: application/json" -d @'cartridgeGroup.json'
> -k -v -u admin:admin https://localhost:9443/api/cartridgeGroup


Please review and merge the PR [2]

[1] - https://issues.apache.org/jira/browse/STRATOS-1404
[2] - https://github.com/apache/stratos/pull/311

Thank you,
Vishanth

-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Re: API method to update cartridge group

Posted by Vishanth Balasubramaniam <vi...@wso2.com>.
Hi Dakshika,

Can we incorporate this in the Stratos GUI?

Regards,
Vishanth

On Thu, May 14, 2015 at 9:20 AM, Mariangela Hills <ma...@wso2.com>
wrote:

> Thanks, everyone!
>
> Regards,
> Mariangela
>
>
>
>
> *--*
> *Mariangela Hills*
> PMC Member & Committer of Apache Stratos
> Senior Technical Writer
> WSO2, Inc.
> lean.enterprise.middleware.
> m: +94 773 500185
> w: http://wso2.com
> <http://wso2.com/events/>
>
> On Thu, May 14, 2015 at 8:28 AM, Dinithi De Silva <di...@wso2.com>
> wrote:
>
>> Hi Mari,
>> Still there's no CL command for this. Will update you once it is done.
>>
>> Thanks.
>>
>> On Thu, May 14, 2015 at 5:49 AM, Mariangela Hills <ma...@wso2.com>
>> wrote:
>>
>>> Thanks, Vishanth! I will document this. Does CLI support cartridge group
>>> updating as well?
>>>
>>> Regards,
>>> Mariangela
>>>
>>>
>>>
>>>
>>> *--*
>>> *Mariangela Hills*
>>> PMC Member & Committer of Apache Stratos
>>> Senior Technical Writer
>>> WSO2, Inc.
>>> lean.enterprise.middleware.
>>> m: +94 773 500185
>>> w: http://wso2.com
>>> <http://wso2.com/events/>
>>>
>>> On Wed, May 13, 2015 at 10:59 PM, Imesh Gunaratne <im...@apache.org>
>>> wrote:
>>>
>>>> +1
>>>>
>>>> On Wed, May 13, 2015 at 9:59 PM, Vishanth Balasubramaniam <
>>>> vishanthb@wso2.com> wrote:
>>>>
>>>>> Hi Devs,
>>>>>
>>>>> I have added a new rest API method to update cartridge group (
>>>>> STRATOS-1404 <https://issues.apache.org/jira/browse/STRATOS-1404>)
>>>>>
>>>>> HTTP Method Resource Path
>>>>>
>>>>>    PUT     /
>>>>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Describing+an+Auto-scaling+Policy+via+REST+API>cartridgeGroup
>>>>>
>>>>> I did a test to update the cartridge group which is not used by any
>>>>> application and verify the cartridge group update with the following
>>>>> curl command
>>>>>
>>>>> curl -X PUT -H "Content-Type: application/json" -d
>>>>>> @'cartridgeGroup.json' -k -v -u admin:admin
>>>>>> https://localhost:9443/api/cartridgeGroup
>>>>>
>>>>>
>>>>> Please review and merge the PR [2]
>>>>>
>>>>> [1] - https://issues.apache.org/jira/browse/STRATOS-1404
>>>>> [2] - https://github.com/apache/stratos/pull/311
>>>>>
>>>>> Thank you,
>>>>> Vishanth
>>>>>
>>>>> --
>>>>> *Vishanth Balasubramaniam*
>>>>> Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> mobile: *+94771737718*
>>>>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Imesh Gunaratne
>>>>
>>>> Senior Technical Lead, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>
>>>
>>
>>
>> --
>> *Dinithi De Silva*
>> Associate Software Engineer, WSO2 Inc.
>> m:+94716667655 | e:dinithis@wso2.com | w: www.wso2.com
>> | a: #20, Palm Grove, Colombo 03
>>
>
>


-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Re: API method to update cartridge group

Posted by Mariangela Hills <ma...@wso2.com>.
Thanks, everyone!

Regards,
Mariangela




*--*
*Mariangela Hills*
PMC Member & Committer of Apache Stratos
Senior Technical Writer
WSO2, Inc.
lean.enterprise.middleware.
m: +94 773 500185
w: http://wso2.com
<http://wso2.com/events/>

On Thu, May 14, 2015 at 8:28 AM, Dinithi De Silva <di...@wso2.com> wrote:

> Hi Mari,
> Still there's no CL command for this. Will update you once it is done.
>
> Thanks.
>
> On Thu, May 14, 2015 at 5:49 AM, Mariangela Hills <ma...@wso2.com>
> wrote:
>
>> Thanks, Vishanth! I will document this. Does CLI support cartridge group
>> updating as well?
>>
>> Regards,
>> Mariangela
>>
>>
>>
>>
>> *--*
>> *Mariangela Hills*
>> PMC Member & Committer of Apache Stratos
>> Senior Technical Writer
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> m: +94 773 500185
>> w: http://wso2.com
>> <http://wso2.com/events/>
>>
>> On Wed, May 13, 2015 at 10:59 PM, Imesh Gunaratne <im...@apache.org>
>> wrote:
>>
>>> +1
>>>
>>> On Wed, May 13, 2015 at 9:59 PM, Vishanth Balasubramaniam <
>>> vishanthb@wso2.com> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> I have added a new rest API method to update cartridge group (
>>>> STRATOS-1404 <https://issues.apache.org/jira/browse/STRATOS-1404>)
>>>>
>>>> HTTP Method Resource Path
>>>>
>>>>    PUT     /
>>>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Describing+an+Auto-scaling+Policy+via+REST+API>cartridgeGroup
>>>>
>>>> I did a test to update the cartridge group which is not used by any
>>>> application and verify the cartridge group update with the following
>>>> curl command
>>>>
>>>> curl -X PUT -H "Content-Type: application/json" -d
>>>>> @'cartridgeGroup.json' -k -v -u admin:admin
>>>>> https://localhost:9443/api/cartridgeGroup
>>>>
>>>>
>>>> Please review and merge the PR [2]
>>>>
>>>> [1] - https://issues.apache.org/jira/browse/STRATOS-1404
>>>> [2] - https://github.com/apache/stratos/pull/311
>>>>
>>>> Thank you,
>>>> Vishanth
>>>>
>>>> --
>>>> *Vishanth Balasubramaniam*
>>>> Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94771737718*
>>>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>>>
>>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Senior Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinithis@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>

Re: API method to update cartridge group

Posted by Dinithi De Silva <di...@wso2.com>.
Hi Mari,
Still there's no CL command for this. Will update you once it is done.

Thanks.

On Thu, May 14, 2015 at 5:49 AM, Mariangela Hills <ma...@wso2.com>
wrote:

> Thanks, Vishanth! I will document this. Does CLI support cartridge group
> updating as well?
>
> Regards,
> Mariangela
>
>
>
>
> *--*
> *Mariangela Hills*
> PMC Member & Committer of Apache Stratos
> Senior Technical Writer
> WSO2, Inc.
> lean.enterprise.middleware.
> m: +94 773 500185
> w: http://wso2.com
> <http://wso2.com/events/>
>
> On Wed, May 13, 2015 at 10:59 PM, Imesh Gunaratne <im...@apache.org>
> wrote:
>
>> +1
>>
>> On Wed, May 13, 2015 at 9:59 PM, Vishanth Balasubramaniam <
>> vishanthb@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> I have added a new rest API method to update cartridge group (
>>> STRATOS-1404 <https://issues.apache.org/jira/browse/STRATOS-1404>)
>>>
>>> HTTP Method Resource Path
>>>
>>>    PUT     /
>>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Describing+an+Auto-scaling+Policy+via+REST+API>cartridgeGroup
>>>
>>> I did a test to update the cartridge group which is not used by any
>>> application and verify the cartridge group update with the following
>>> curl command
>>>
>>> curl -X PUT -H "Content-Type: application/json" -d
>>>> @'cartridgeGroup.json' -k -v -u admin:admin
>>>> https://localhost:9443/api/cartridgeGroup
>>>
>>>
>>> Please review and merge the PR [2]
>>>
>>> [1] - https://issues.apache.org/jira/browse/STRATOS-1404
>>> [2] - https://github.com/apache/stratos/pull/311
>>>
>>> Thank you,
>>> Vishanth
>>>
>>> --
>>> *Vishanth Balasubramaniam*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94771737718*
>>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>>
>>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Senior Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>


-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinithis@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03

Re: API method to update cartridge group

Posted by Mariangela Hills <ma...@wso2.com>.
Thanks, Vishanth! I will document this. Does CLI support cartridge group
updating as well?

Regards,
Mariangela




*--*
*Mariangela Hills*
PMC Member & Committer of Apache Stratos
Senior Technical Writer
WSO2, Inc.
lean.enterprise.middleware.
m: +94 773 500185
w: http://wso2.com
<http://wso2.com/events/>

On Wed, May 13, 2015 at 10:59 PM, Imesh Gunaratne <im...@apache.org> wrote:

> +1
>
> On Wed, May 13, 2015 at 9:59 PM, Vishanth Balasubramaniam <
> vishanthb@wso2.com> wrote:
>
>> Hi Devs,
>>
>> I have added a new rest API method to update cartridge group (
>> STRATOS-1404 <https://issues.apache.org/jira/browse/STRATOS-1404>)
>>
>> HTTP Method Resource Path
>>
>>    PUT     /
>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Describing+an+Auto-scaling+Policy+via+REST+API>cartridgeGroup
>>
>> I did a test to update the cartridge group which is not used by any
>> application and verify the cartridge group update with the following
>> curl command
>>
>> curl -X PUT -H "Content-Type: application/json" -d @'cartridgeGroup.json'
>>> -k -v -u admin:admin https://localhost:9443/api/cartridgeGroup
>>
>>
>> Please review and merge the PR [2]
>>
>> [1] - https://issues.apache.org/jira/browse/STRATOS-1404
>> [2] - https://github.com/apache/stratos/pull/311
>>
>> Thank you,
>> Vishanth
>>
>> --
>> *Vishanth Balasubramaniam*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94771737718*
>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>
>>
>
>
> --
> Imesh Gunaratne
>
> Senior Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>

Re: API method to update cartridge group

Posted by Imesh Gunaratne <im...@apache.org>.
+1

On Wed, May 13, 2015 at 9:59 PM, Vishanth Balasubramaniam <
vishanthb@wso2.com> wrote:

> Hi Devs,
>
> I have added a new rest API method to update cartridge group (STRATOS-1404
> <https://issues.apache.org/jira/browse/STRATOS-1404>)
>
> HTTP Method Resource Path
>
>    PUT     /
> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Describing+an+Auto-scaling+Policy+via+REST+API>cartridgeGroup
>
> I did a test to update the cartridge group which is not used by any
> application and verify the cartridge group update with the following curl
> command
>
> curl -X PUT -H "Content-Type: application/json" -d @'cartridgeGroup.json'
>> -k -v -u admin:admin https://localhost:9443/api/cartridgeGroup
>
>
> Please review and merge the PR [2]
>
> [1] - https://issues.apache.org/jira/browse/STRATOS-1404
> [2] - https://github.com/apache/stratos/pull/311
>
> Thank you,
> Vishanth
>
> --
> *Vishanth Balasubramaniam*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94771737718*
> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>
>


-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos