Re: [Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-12 Thread Saad Sahibjan
Hi Yasima,

Thanks :D

Regards,
Saad

On Wed, Jul 12, 2017 at 1:58 PM, Yasima Dewmini  wrote:

> Hi Saad,
>
> Yes you are correct. For that you can first do a registry get to get the
> current tier.xml. Next append the new tire configuration you want and do
> the registry put.
>
> Regards,
> Yasima.
>
> On Wed, Jul 12, 2017 at 1:08 PM, Saad Sahibjan 
> wrote:
>
>> Hi Yasima,
>>
>> Thanks for the reply.
>>
>> I went through [1] and it looks like a file replacement. Correct me if
>> i'm wrong.
>>
>> I don't want to replace the whole file, I want to edit the existing file
>> to add the custom tier without any affect to the already existing tiers. In
>> case if someone else has updated the tiers.xml and if I do a full file
>> replacement there will be a loss. So to avoid it even after adding a custom
>> tier already existing tiers before adding the custom tier also should be
>> available along with the new tier. And this has to be done without the use
>> of UI.
>>
>> [1] https://github.com/malinthaprasan/registry-ws-client/
>>
>> Regards,
>> Saad
>>
>> On Wed, Jul 12, 2017 at 12:31 PM, Yasima Dewmini  wrote:
>>
>>> Hi Saad,
>>>
>>> You can write a SOAP based client for updating a registry resource -
>>> tiers.xml. Please find a sample in [1].
>>>
>>> If you like to do it using carbon console refer [2] which is same as in
>>> APIM 1.9.0.
>>>
>>> [1] https://github.com/malinthaprasan/registry-ws-client/
>>> [2] https://docs.wso2.com/display/AM190/Adding+new+Throttling+Tiers
>>>
>>> Regards
>>> Yasima.
>>>
>>> On Wed, Jul 12, 2017 at 11:29 AM, Saad Sahibjan >> > wrote:
>>>
 Hi,

 I want to add a custom tier to API Manager 1.9.1 but not through UI. I
 checked the API Manager 2.1.0, adding a custom tier could be done through
 editing the 'default-tiers.xml' file in the 'wso2am-2.1.0\repository\resou
 rces\default-tiers'

 Is there any way to add a custom tier in to AM 1.9.1 pack without the
 use of UI?

 Regards,
 Saad

 --
 Regards
 Saad Sahibjan

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> http://wso2.com/signatureYasima Dewmini
>>> Software Engineer, WSO2, Inc.
>>> Email: yas...@wso2.com
>>> Mobile: +94713117081 <+94%2071%20311%207081>
>>>
>>
>>
>>
>> --
>> Regards
>> Saad Sahibjan
>>
>
>
>
> --
> http://wso2.com/signatureYasima Dewmini
> Software Engineer, WSO2, Inc.
> Email: yas...@wso2.com
> Mobile: +94713117081 <+94%2071%20311%207081>
>



-- 
Regards
Saad Sahibjan
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-12 Thread Yasima Dewmini
Hi Saad,

Yes you are correct. For that you can first do a registry get to get the
current tier.xml. Next append the new tire configuration you want and do
the registry put.

Regards,
Yasima.

On Wed, Jul 12, 2017 at 1:08 PM, Saad Sahibjan 
wrote:

> Hi Yasima,
>
> Thanks for the reply.
>
> I went through [1] and it looks like a file replacement. Correct me if i'm
> wrong.
>
> I don't want to replace the whole file, I want to edit the existing file
> to add the custom tier without any affect to the already existing tiers. In
> case if someone else has updated the tiers.xml and if I do a full file
> replacement there will be a loss. So to avoid it even after adding a custom
> tier already existing tiers before adding the custom tier also should be
> available along with the new tier. And this has to be done without the use
> of UI.
>
> [1] https://github.com/malinthaprasan/registry-ws-client/
>
> Regards,
> Saad
>
> On Wed, Jul 12, 2017 at 12:31 PM, Yasima Dewmini  wrote:
>
>> Hi Saad,
>>
>> You can write a SOAP based client for updating a registry resource -
>> tiers.xml. Please find a sample in [1].
>>
>> If you like to do it using carbon console refer [2] which is same as in
>> APIM 1.9.0.
>>
>> [1] https://github.com/malinthaprasan/registry-ws-client/
>> [2] https://docs.wso2.com/display/AM190/Adding+new+Throttling+Tiers
>>
>> Regards
>> Yasima.
>>
>> On Wed, Jul 12, 2017 at 11:29 AM, Saad Sahibjan 
>> wrote:
>>
>>> Hi,
>>>
>>> I want to add a custom tier to API Manager 1.9.1 but not through UI. I
>>> checked the API Manager 2.1.0, adding a custom tier could be done through
>>> editing the 'default-tiers.xml' file in the 'wso2am-2.1.0\repository\resou
>>> rces\default-tiers'
>>>
>>> Is there any way to add a custom tier in to AM 1.9.1 pack without the
>>> use of UI?
>>>
>>> Regards,
>>> Saad
>>>
>>> --
>>> Regards
>>> Saad Sahibjan
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> http://wso2.com/signatureYasima Dewmini
>> Software Engineer, WSO2, Inc.
>> Email: yas...@wso2.com
>> Mobile: +94713117081 <+94%2071%20311%207081>
>>
>
>
>
> --
> Regards
> Saad Sahibjan
>



-- 
http://wso2.com/signatureYasima Dewmini
Software Engineer, WSO2, Inc.
Email: yas...@wso2.com
Mobile: +94713117081
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-12 Thread Saad Sahibjan
Hi Yasima,

Thanks for the reply.

I went through [1] and it looks like a file replacement. Correct me if i'm
wrong.

I don't want to replace the whole file, I want to edit the existing file to
add the custom tier without any affect to the already existing tiers. In
case if someone else has updated the tiers.xml and if I do a full file
replacement there will be a loss. So to avoid it even after adding a custom
tier already existing tiers before adding the custom tier also should be
available along with the new tier. And this has to be done without the use
of UI.

[1] https://github.com/malinthaprasan/registry-ws-client/

Regards,
Saad

On Wed, Jul 12, 2017 at 12:31 PM, Yasima Dewmini  wrote:

> Hi Saad,
>
> You can write a SOAP based client for updating a registry resource -
> tiers.xml. Please find a sample in [1].
>
> If you like to do it using carbon console refer [2] which is same as in
> APIM 1.9.0.
>
> [1] https://github.com/malinthaprasan/registry-ws-client/
> [2] https://docs.wso2.com/display/AM190/Adding+new+Throttling+Tiers
>
> Regards
> Yasima.
>
> On Wed, Jul 12, 2017 at 11:29 AM, Saad Sahibjan 
> wrote:
>
>> Hi,
>>
>> I want to add a custom tier to API Manager 1.9.1 but not through UI. I
>> checked the API Manager 2.1.0, adding a custom tier could be done through
>> editing the 'default-tiers.xml' file in the 'wso2am-2.1.0\repository\resou
>> rces\default-tiers'
>>
>> Is there any way to add a custom tier in to AM 1.9.1 pack without the use
>> of UI?
>>
>> Regards,
>> Saad
>>
>> --
>> Regards
>> Saad Sahibjan
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> http://wso2.com/signatureYasima Dewmini
> Software Engineer, WSO2, Inc.
> Email: yas...@wso2.com
> Mobile: +94713117081 <+94%2071%20311%207081>
>



-- 
Regards
Saad Sahibjan
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-12 Thread Yasima Dewmini
Hi Saad,

You can write a SOAP based client for updating a registry resource -
tiers.xml. Please find a sample in [1].

If you like to do it using carbon console refer [2] which is same as in
APIM 1.9.0.

[1] https://github.com/malinthaprasan/registry-ws-client/
[2] https://docs.wso2.com/display/AM190/Adding+new+Throttling+Tiers

Regards
Yasima.

On Wed, Jul 12, 2017 at 11:29 AM, Saad Sahibjan 
wrote:

> Hi,
>
> I want to add a custom tier to API Manager 1.9.1 but not through UI. I
> checked the API Manager 2.1.0, adding a custom tier could be done through
> editing the 'default-tiers.xml' file in the 'wso2am-2.1.0\repository\
> resources\default-tiers'
>
> Is there any way to add a custom tier in to AM 1.9.1 pack without the use
> of UI?
>
> Regards,
> Saad
>
> --
> Regards
> Saad Sahibjan
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
http://wso2.com/signatureYasima Dewmini
Software Engineer, WSO2, Inc.
Email: yas...@wso2.com
Mobile: +94713117081
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-11 Thread Saad Sahibjan
Hi,

I want to add a custom tier to API Manager 1.9.1 but not through UI. I
checked the API Manager 2.1.0, adding a custom tier could be done through
editing the 'default-tiers.xml' file in the
'wso2am-2.1.0\repository\resources\default-tiers'

Is there any way to add a custom tier in to AM 1.9.1 pack without the use
of UI?

Regards,
Saad

-- 
Regards
Saad Sahibjan
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev