I have a requirement where i want to set an expression which gets computed at run time and gets assigned to quota policy for a given API proxy .
Do i define expression inside quota policy as<Allow countRef="myvariable*100" /> and pass myvariable at run time .
How does it work ?
Regards
Arpit
Solved! Go to Solution.
@Arpit Sharma Check out the Quota doc here: http://docs.apigee.com/api-services/reference/quota-policy
There are videos and code examples showing this.
Stephen
I don't believe you can evaluate an expression like that inside the reference. You'll need to set that variable prior, via AssignMessage policy, for example.
@Carlos Eberhardt Could you please give an example
See attached. Should be pretty straightforward. I used a javascript policy (didn't do much code cleanup).
@Arpit Sharma Check out the Quota doc here: http://docs.apigee.com/api-services/reference/quota-policy
There are videos and code examples showing this.
Stephen
Hello,
Is different quota policy allowed based upon apikey?
Thank you!
Aj