Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Quota policy error: Failed to resolve interval reference

I followed the documentation, https://cloud.google.com/apigee/docs/api-platform/reference/policies/quota-policy?hl=en#samples, and implemented a quota policy. The XML is below. I get an error that Apigee fails to resolve the reference. I have the Verify API Policy implemented as verify-api-policy

XML:

<Allow count="3" countRef="verifyapikey.verify-api-key.apiproduct.developer.quota.limit"/>

<Interval ref="verifyapikey.verify-api-key.apiproduct.developer.quota.timeInterval"/>

<TimeUnit ref="verifyapikey.verify-api-key.apiproduct.developer.quota.timeunit"/>

<Identifier ref="verifyapikey.Verify-API-Key.client_id"/> </Quota>

Error:
"faultstring": "Failed to resolve quota interval reference verifyapikey.verify-api-key.apiproduct.developer.quota.timeInterval in quota policy CheckQuota",

Solved Solved
1 4 678
1 ACCEPTED SOLUTION

Not applicable

You need to do first the api key verification.

then

verifyapikey.<api key verification policy name>.apiproduct.developer.quota.limit

verifyapikey.<api key verification policy name>.apiproduct.developer.quota.timeunit

verifyapikey.<api key verification policy name>.apiproduct.developer.quota.interval

Also, I will suggest to have default values in your policy also.

View solution in original post

4 REPLIES 4