While I am configuring quota policy I am getting "Invalid timeunit second for distributed quota". Policy is not taking quota_timeout = seconds when I give distributed = true . If I want to give 10 trx / second with distributed = true , what is the best way I canto configure ? only way is to change count to that matches in minutes?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Quota async="false" continueOnError="false" enabled="true" name="AuthRateLimit"> <DisplayName>AuthRateLimit</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">second</TimeUnit>
<Identifier ref="request.header.Authorization"/> </Quota>
Hi,
Please see the documented values:
https://docs.apigee.com/api-services/reference/quota-policy#interval
Valid "TimeUnits" don't include "second" , valid units are
Type:String. Select from minute, hour, day, week, or month.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |