API Manager admins can add new throttling tiers through the Management Console as described in the instructions below:1. . For a description of throttling tiers, see API-level throttling.
- Log in to the API Manager's Management Console and select
...
- Browse
...
- under
...
- Resources
...
- menu.
...
...
- Select the file: /_system/governance/apimgt/applicationdata/tiers.xml.
...
...
In the
...
Contents
...
panel,
...
click Edit as text
...
link and throttling policy should open up bellow.
...
You can add a new policy configuration by editing the XML code. As an example, we have added a new tier called
...
Platinum
...
by including the following XML code block soon after the
...
<throttle:MediatorThrottleAssertion>
...
tag:
Code Block language html/xml wsp:Policy> <throttle:ID throttle:type="ROLE">Platinum</throttle:ID> <wsp:Policy> <throttle:Control> <wsp:Policy> <throttle:MaximumCount>50</throttle:MaximumCount> <throttle:UnitTime>60000</throttle:UnitTime> </wsp:Policy> </throttle:Control> </wsp:Policy> </wsp:Policy>
The file looks as follows after the addition:
...
Click
...
the
...
Save Content
...
button. Now your new throttling policy (
...
Platinum
...
) is successfully saved in the Repository used by WSO2 API Manager. You can view this new throttle tier available for selection when creating a new API through the API Publisher.
...
Excerpt | ||
---|---|---|
| ||
Throttling tiers in WSO2 API Manager |
...