Adding New Throttling Policies
WSO2 API Manager admins can add new throttling policies and define extra properties to the throttling policies. To get started, click the level of throttling that you want to add a new policy to:
To make changes in the throttling configurations, set the EnableAdvanceThrottling parameter in api-manager.xml. This parameter is set to true by default. If you set it to false, you only see the available tiers.
Adding a new advanced throttling policy
You can add advanced throttling policies to both APIs and resources.
Sign in to the Admin Portal using the URL
https://localhost:9443/adminand your admin credentials (admin/admin by default).Click Advanced Throttling under the Throttle Policies section to see the set of existing throttling tiers.
To add a new tier, click Add Tier.
Fill in the required details and click Save.
To add throttling limits with different parameters to the conditions below, click Add Conditional Group.
You can add Description about condition group by click Sample description about condition group under Condition Group.
Turn on the required condition and enter a condition and value.
Header condition and JWT claim condition values allow regex patterns to be defined.
You can configure it to make either an exact match or a pattern match for the value using the regex values. For example,
Once done, click Add.
You have added a new advanced throttling policy. You can now apply it to an API or a resource.
You possibly can configure multiple conditional groups when defining a tier for advanced throttling policies. For example, Its possible to apply IP based throttling and query pram condition both in one advanced policy tier.
Adding a new application-level throttling tier
Application-level throttling policies are applicable per access token generated for an application.
Sign in to the Admin Portal using the URL https://localhost:9443/admin and your admin credentials (admin/admin by default).
Click Application Tiers under the Throttle Policies section to see the set of existing throttling tiers.
To add a new tier, click Add New Policy.
Fill in the required details and click Save.
You have added a new application-level throttling policy.
Adding a new subscription-level throttling tier
Sign in to the Admin Portal using the URL
https://localhost:9443/adminand your admin credentials.Click Subscription Policies under the Throttling Policies section. The existing set of throttling tiers are displayed.
To add a new tier, click Add New Policy.
Fill in the details required by this form and click Save once you are done.
Given below are the descriptions of the fields you find in the form:
You have added a new subscription-level throttling policy.