API7 Docs
TransformationFault Injection

Fault Injection Configuration

Parameters

See plugin common configurations for configuration options available to all plugins.

  • abortobject · optional

    Abort action configurations.

    • http_statusinteger · required

      Valid values: greater than or equal to 200

      Response HTTP status code to return to client.

    • bodystring · optional

      Body of the response returned to the client. Support the use of built-in variables in the body.

    • headersobject · optional

      Headers of the response returned to the client. Support the use of built-in variables in headers.

    • percentageinteger · optional

      Valid values: between 0 and 100 inclusive

      Percentage of requests to be aborted.

    • varsarray[array] · optional

      An array of one or more matching conditions in the form of APISIX expressions to conditionally execute the plugin.

  • delayobject · optional

    Delay action configurations.

    • durationnumber · required

      Delay duration in seconds.

    • percentageinteger · optional

      Valid values: between 0 and 100 inclusive

      Percentage of requests to be delayed.

    • varsarray[array] · optional

      An array of one or more matching conditions in the form of APISIX expressions to conditionally execute the plugin.