简体   繁体   中英

Azure API Manager “USage Quota Per Subscription” Policy

The policy syntax is as below -

<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>  

I have a specific question related to the renewal period. As per documentation, it's

The time period in seconds after which the quota resets

Suppose I want the quota to reset every day. I put the value of renewal period as = (60*60*24= 86400) . When would this limit kick in? Would it be reset exactly 24 hours from the time the policy becomes effective? So if I want the quota to reset at midnight, I have to make sure that the policy gets into effect at midnight?

the renewal starts to count down after the quota limit is reached. So in this case, configuring a renewal of 24hours, if you reach your quota on 11/09/2018 13:00, then you will be able to request it again only on 12/09/2018 13:00.

Kind Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM