'WSO2 API manager 4.1 Custom rate limiting - denying requests at definable time intervals

Based on this link, there are four policies for denying requests in the WSO2 API Manager.

  • Block calls to specific APIs
  • Block all calls from a given application
  • Block requests coming from a specific IP address
  • Block a specific user from accessing APIs

Based on this link, The following keys can be used to create custom rate limiting policies (with Siddhi query language):

  • resourceKey
  • userId
  • apiContext
  • apiVersion
  • appTenant
  • apiTenant
  • appId
  • clientIp

I need to deny requests within specific time limits. Maybe particular hours or some specific days. Is there a way to do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source