Azure API Manager "USage Quota Per Subscription" Policy



策略语法如下 -

<quota calls="number" bandwidth="kilobytes" renewal-period="seconds">  
<api name="API name" id="API id" calls="number" renewal-period="seconds" />  
<operation name="operation name" id="operation id" calls="number" renewal-period="seconds" />  
</api>  
</quota>  

我有一个与续订期有关的具体问题。根据文档,它是

配额重置的时间段(以秒为单位(

假设我希望配额每天重置。我将续订期的值设置为 =(60*60*24= 86400)。这个限制什么时候开始生效?是否会在保单生效后正好 24 小时重置?因此,如果我希望配额在午夜重置,我必须确保策略在午夜生效?

达到配额限制后,续订开始倒计时。因此,在这种情况下,配置24小时的续订,如果您在11/09/2018 13:00达到配额,那么您只能在12/09/2018 13:00再次请求。

相关内容

最新更新