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 one action to be executed when a condition is successfully matched. Currently, it only supports one action, and it should be either
return
orlimit-count
.When the action is configured to be
return
, you can configure an HTTP status code to return to the client when the condition is matched.When the action is configured to be
limit-count
, you can configure all options of thelimit-count
plugin, except forgroup
.