Parameters
See plugin common configurations for configuration options available to all plugins.
type
vaild vaule:
consumer_name,consumer_group_id,service_id, orroute_idKey type to restrict by.
consumer_group_idis usable in APISIX. API7 Gateway inherits the schema value but does not assign group IDs; selecting it causes requests to return HTTP 401.whitelist
List of objects to whitelist.
Configure at least one of
whitelist,blacklist, andallowed_by_methods.When combined, a matching
blacklistentry rejects first. A matchingwhitelistentry then allows the request without evaluatingallowed_by_methods. A value absent from the whitelist remains rejected even ifallowed_by_methodswould allow its method.blacklist
List of objects to blacklist.
Configure at least one of
whitelist,blacklist, andallowed_by_methods.A matching blacklist entry always rejects the request, including when the same value is also whitelisted.
allowed_by_methods
List of key-value pairs of consumer name and their corresponding HTTP methods allowed.
Configure at least one of
whitelist,blacklist, andallowed_by_methods.Method restrictions are evaluated only for values that are not whitelisted. If a value has no entry in this list, this field does not restrict its methods.
user
Consumer username.
methods
vaild vaule:
Any combination of the
GET,POST,PUT,DELETE,PATCH,HEAD,OPTIONS,CONNECT,TRACE,PURGEmethodsList of allowed HTTP methods for the consumer.
rejected_code
vaild vaule:
greater than or equal to 200
HTTP status code to return when the request is rejected.
rejected_msg
Error message to return when the request is rejected.