Wasm Transforms

Deploy Transform

Changed on

Initiate deployment of a new Wasm transform. This endpoint uses multipart/form-data encoding. Following deployment, a brief period is required before the Wasm transform becomes operational. Monitor the partition statuses to check whether the transform is active. This usually takes around 3s, but no longer than 10s.

put/v1/transforms

Request

  • Base URL
    https://{dataplane_api_url}
  • Auth
    OAuth 2
    Implicit: https://auth.prd.cloud.redpanda.com/oauth/authorize

Request body multipart/form-data

wasm_binarystring binary

Binary file containing the compiled WASM transform. The maximum size for this file is 10MiB.

Example request

{
  "metadata": {
    "environment_variables": [
      {
        "key": "LOG_LEVEL",
        "value": "DEBUG"
      }
    ],
    "input_topic_name": "orders",
    "name": "redact-payment-details-in-orders"
  }
}

Response

Created

input_topic_namestring

Input topic to apply the transform to.

namestring

Name of transform.

output_topic_namesstring[]

Output topics to write the transform results to.

Example response

{
  "environment_variables": [
    {
      "key": "LOG_LEVEL",
      "value": "DEBUG"
    }
  ]
}

Changes