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! Go to 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.
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.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |