The TimeUnit element "second" must be one of "day", "hour", "minute", "month", or "week".

When trying to save a quota policy with TimeUnit : second,

<Quota name="Quota-1">
  <Allow count="5"/>
  <Interval>1</Interval>
  <Distributed>false</Distributed>
  <Synchronous>false</Synchronous>
  <TimeUnit>second</TimeUnit>
</Quota>

I’m getting this error.

**Cannot save revision**
apiproxy/policies/Quota-1.xml: The TimeUnit element "second" must be one of "day", "hour", "minute", "month", or "week".

The documentation says “Quota policy also supports second”.

https://cloud.google.com/apigee/docs/api-platform/reference/policies/quota-policy#timeunit

1 Like