Parameters
See plugin common configurations for configuration options available to all plugins.
rules
array[object]
required
An array of one or more pairs of matching conditions and actions to be executed.
case
actions
array[object]
required
An array of actions to be executed when a condition is successfully matched. Currently, the array only supports one action, and it should be either
return, orlimit-count. If you are using API7 Enterprise, you can also uselimit-count-advancedorlimit-connas the action.When the action is set to
return, you can configure an HTTP status code to return to the client when the condition is matched.When the action is set to
limit-count, you can configure all options of thelimit-countplugin, except forgroup.When the action is set to
limit-count-advanced, you can configure all options of thelimit-count-advancedplugin, except forgroup.When the action is set to
limit-conn(also supported in API7 Enterprise from 3.8.9), you can configure all options of thelimit-connplugin.