How to optionally apply quota?

Not applicable

I'm trying to configure a proxy to only apply the quota policy if the product has a quota set.

I've tried the following code, but the variable apiproduct.developer.quota.interval is always null.

<Step>
  <FaultRules/> 
  <Name>impose-quota</Name>
  <Condition>(apiproduct.developer.quota.interval != null)</Condition>             </Step>
Solved Solved
0 1 132
1 ACCEPTED SOLUTION

I typically always put quota policy after VerifyAPIKey policy and then the following variable gets populated :: verifyapikey.{verify-api-key-policy-name}.apiproduct.developer.quota.interval .... If you have a VerifyAPIKey policy you might want to give this a shot.

View solution in original post

1 REPLY 1

I typically always put quota policy after VerifyAPIKey policy and then the following variable gets populated :: verifyapikey.{verify-api-key-policy-name}.apiproduct.developer.quota.interval .... If you have a VerifyAPIKey policy you might want to give this a shot.