Apigee Edge - 4MV4D - Quota Policy - Calendar Type - S02E06

Hello Apigeeks,

In this 4MV4D, Find out how you can set start date & time for Quota calculation hands-on. In general, Quota Policy will start applying quota limits to API requests from the time you deploy the proxy based on Interval & TimeUnit. But, If you would like to start applying these limits starting from particular start time Calendar type is helpful. You need to specify start time in GMT timezone if you use calendar type of quota.

For example, Let’s say your proxy is deployed & you are allowing API requests without any Quota. Your business team sent a request to restrict API requests based on Quota limits & same time partners are notified that quota will start applying to API requests starting from particular day & time. In this case, Quota Calendar type is useful where Quota limitations will start from particular date & time you have mentioned in the policy.

See example Quota Policy code below that showcases Quota Policy calendar type,

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Quota async="false" continueOnError="false" enabled="true" name="Quota-1" type="calendar">
    <DisplayName>Quota-1</DisplayName>
    <Properties/>
    <Allow count="3"/>
    <Interval>1</Interval>
    <Distributed>true</Distributed>
    <Synchronous>true</Synchronous>
    <TimeUnit>minute</TimeUnit>
    <StartTime>2017-3-8 11:59:00</StartTime>
</Quota>

Change the StartTime element to some future GTM time to see it in action.

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.

Comments
kamalpanwar
Bronze 1
Bronze 1

Hi Anil,

Thanks for sharing this video. It is really informative. Though is it possible to set time interval as per user's location (location specific timezone) ? I mean by default its sets as per GMT but in case if user's hitting the api from different location. 

Version history
Last update:
‎03-08-2017 05:57 AM
Updated by: