Configurable Quota Policy

Not applicable

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 Solved
1 5 131
1 ACCEPTED 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

View solution in original post

5 REPLIES 5

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

quota-var-set-examlple.zip

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

Not applicable

Hello,

Is different quota policy allowed based upon apikey?

Thank you!

Aj