Skip to main content

OpenWhisk Configuration

The openwhisk plugin invokes Apache OpenWhisk actions with Basic authentication and propagates action status, headers, and response bodies. Configuration covers plugin parameters.

Parameters​

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

  • api_host

    string

    required


    HTTP or HTTPS origin of the OpenWhisk API.

  • service_token

    string

    required


    OpenWhisk authorization key in UUID:secret form. The plugin sends it through HTTP Basic authentication. API7 Gateway encrypts the value with AES at rest. APISIX encrypts it before etcd storage when apisix.data_encryption.enable_encrypt_fields is enabled.

  • namespace

    string

    required

    valid value:

    no more than 256 characters and matching the released OpenWhisk name pattern

    Namespace containing the action.

  • package

    string

    valid value:

    no more than 256 characters and matching the released OpenWhisk name pattern

    Package containing the action. Omit for an unpackaged action.

  • action

    string

    required

    valid value:

    no more than 256 characters and matching the released OpenWhisk name pattern

    Action to invoke.

  • result

    boolean

    default: true


    If true, request the action result. If false, return the complete activation record. Invocations are always blocking.

  • max_req_body_size

    integer

    default: 67108864

    valid value:

    greater than or equal to 1

    Maximum request body size in bytes. A larger body is rejected with 413 Payload Too Large. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and in APISIX 3.18.0.

  • timeout

    integer

    default: 3000

    valid value:

    between 1 and 60000 inclusive

    OpenWhisk action and gateway HTTP request timeout in milliseconds.

  • ssl_verify

    boolean

    default: true


    If true, verify the OpenWhisk API TLS certificate.

  • keepalive

    boolean

    default: true


    If true, keep connections to OpenWhisk alive for reuse.

  • keepalive_timeout

    integer

    default: 60000

    valid value:

    greater than or equal to 1000

    Time in milliseconds that an idle keepalive connection remains open.

  • keepalive_pool

    integer

    default: 5

    valid value:

    greater than or equal to 1

    Maximum number of connections in the keepalive pool.