Hello Apigeeks,
In this 4MV4D, Find out how you can set different allowed API Quota count based on flow variable values.
For example, If a request comes from partner you might want to allow 100 requests / minute, If request comes from public developer you might want to allow 20 requests / minute. You can set conditional Quota count using element in Quota Policy & define conditions based on flow variable values.
See Quota Policy used in this 4MV4D video below that shows Quota Policy flexi type in action.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Quota async="false" continueOnError="false" enabled="true" name="Quota-1">
<DisplayName>Quota-1</DisplayName>
<Properties/>
<Interval>1</Interval>
<Distributed>true</Distributed>
<Synchronous>true</Synchronous>
<TimeUnit>minute</TimeUnit>
<Allow>
<Class ref="request.queryparam.appTeam">
<Allow class="partner" count="4"/>
<Allow class="public" count="2"/>
</Class>
</Allow>
</Quota>
As you can see different Quota counts are applied based on query param values. You can leverage same concept to have different quota counts based on App Attributes , Developer Attributes, Request / Response payload using flow variables.
4MV4D videos are completely focussed on API Developers & Help you learn many interesting concepts very quickly using hands-on approach. Don’t forget to subscribe to channel here & share same with your friends / colleagues who are interested in Apigee.
Feel free to send your feedback/queries using comments below or Ask a question if you have any query. Stay tuned for more videos.