Solved! Go to Solution.
@Andy.Zhong Yes.
In API Products define multiple custom attributes each defining your quota for per hour or day or whatever is applicable.
Attach multiple Rate Limit policies conditionally. Each policy will enforce a different type of limit like one can be for per hour another for per day etc.
The individual rate limiting policies will reference the variables set in custom attributes of the products.
And each policy will be attached based on a condition which will be something like:
<Condition>(products.customVariables.PerDayVariable is null) and (products.customVariables.PerWeekVariable is NOT null)</Condition> then execute the per week rate limit policy.
Let me know if this makes sense? Else I will try to post a working example later in the day.
@Andy.Zhong Yes.
In API Products define multiple custom attributes each defining your quota for per hour or day or whatever is applicable.
Attach multiple Rate Limit policies conditionally. Each policy will enforce a different type of limit like one can be for per hour another for per day etc.
The individual rate limiting policies will reference the variables set in custom attributes of the products.
And each policy will be attached based on a condition which will be something like:
<Condition>(products.customVariables.PerDayVariable is null) and (products.customVariables.PerWeekVariable is NOT null)</Condition> then execute the per week rate limit policy.
Let me know if this makes sense? Else I will try to post a working example later in the day.
Sarthak, thank you for the quick reply. Please post a working example if possible. Thanks in advance!
Hi @Andy.Zhong I have published an article on this topic - https://community.apigee.com/articles/19119/configure-multiple-quota-for-an-api-proxy-in-apige.html
Dear @Andy.Zhong , Welcome to Apigee community 🙂