We use developer app to access an api but there are more 200000 fault response
note that i am using quota
COUNT :2000 , TIME PER DAY , Ref =AppID
what is the best solution to overcome this problem?
Solved! Go to Solution.
It's unclear exactly what you are asking. Perhaps rephrase the question and better describe your issue.
I think you are asking how to modify the Quota policy to allow for up to 200,000 requests. You will need to modify the following elements to set your intended rate limit:
<Interval>
<Allow>
<TimeUnit>
<Identifier>
Take a look at the Quota policy documentation for detailed information.
As an example, the following policy allows 10 requests every 1 minute, identified by developer app (referenced by the client_id):
<Quota continueOnError="false" enabled="false" name="Quota-10pm" type="calendar">
<DisplayName>Quota-10pm</DisplayName>
<Properties/>
<Allow count="10" countRef="request.header.allowed_quota"/>
<Interval ref="request.header.quota_count">1</Interval>
<Distributed>true</Distributed>
<Synchronous>true</Synchronous>
<TimeUnit ref="request.header.quota_timeout">minute</TimeUnit>
<StartTime>2023-2-17 12:00:00</StartTime>
<Identifier ref="verifyapikey.Verify-API-Key.client_id"/>
</Quota>
In my example, I have a policy named 'Verify-API-Key' prior to the Quota policy which verifies the developer app and sets the appropriate variable I use as the Identifier.
It's unclear exactly what you are asking. Perhaps rephrase the question and better describe your issue.
I think you are asking how to modify the Quota policy to allow for up to 200,000 requests. You will need to modify the following elements to set your intended rate limit:
<Interval>
<Allow>
<TimeUnit>
<Identifier>
Take a look at the Quota policy documentation for detailed information.
As an example, the following policy allows 10 requests every 1 minute, identified by developer app (referenced by the client_id):
<Quota continueOnError="false" enabled="false" name="Quota-10pm" type="calendar">
<DisplayName>Quota-10pm</DisplayName>
<Properties/>
<Allow count="10" countRef="request.header.allowed_quota"/>
<Interval ref="request.header.quota_count">1</Interval>
<Distributed>true</Distributed>
<Synchronous>true</Synchronous>
<TimeUnit ref="request.header.quota_timeout">minute</TimeUnit>
<StartTime>2023-2-17 12:00:00</StartTime>
<Identifier ref="verifyapikey.Verify-API-Key.client_id"/>
</Quota>
In my example, I have a policy named 'Verify-API-Key' prior to the Quota policy which verifies the developer app and sets the appropriate variable I use as the Identifier.