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

How to add Quota policy for different clientids and pull the allowed count from KVM for each client

Hi,

Below is the Quota policy i created for my proxy.

<Quota async="false" continueOnError="false" enabled="true" name="QuotaLimit">
<DisplayName>QuotaLimit</DisplayName>
<Properties/>
<TimeUnit>minute</TimeUnit>
<Interval>1</Interval>
<Distributed>false</Distributed>
<Synchronous>false</Synchronous>
<Allow>
<Class ref="consumer.client.id">
<Allow class="client1" count="2" />
<Allow class="client2" count="4"/>
</Class>
</Allow>
</Quota>

Now the problem here is , client 1 can come back to me tomorrow and ask me to raise its quota from 2 to 10. In such case I will have to make that update in apigee proxy and re-deploy. Instead I was looking for a way by which re-deployment was not needed ie. instead of hardcoding this value if there was a way by which we could fetch the value from KVM(update in KVM should have been required in such case), it would have been great. "countRef" doesnt seem to work/present for the Allow(child of Class) - ref(https://docs.apigee.com/api-platform/reference/policies/quota-policy#allowelement-allowclassallowele...).

Is there anyway by which i can achieve above ?

0 9 1,380
9 REPLIES 9