Skip to main content

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.

    Rules are evaluated in sequential order. If there are multiple rules and the condition of a rule is matched, the associated actions will execute. Subsequent rules will be omitted for evaluations and executions.

    • match

      array[array]


      required


      An array of one or more matching conditions in the form of APISIX expressions.

    • actions

      array[object]


      required


      An array of one or more actions to be executed when a condition is successfully matched.

      • set_headers

        object


        One or more request headers to apply to requests in the format of {"name": "value", ...}, where value could be a built-in variable. If a header of the same name already exists, it will be overwritten.

      • weight

        integer


        default: 1


        The weight of action distribution.


API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IRed Herring

Copyright © APISEVEN Ltd. 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation