# 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[​](#parameters "Direct link to Parameters")

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) 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.
