set_pyfilter_code
Replace the Python filter source for a service by providing code that imports pyfilter and decorates handlers. Server-side compilation validates the code and returns 400 on errors.
Instructions
Replace the Python filter source for a service.
The code must import pyfilter from firegex.nfproxy and decorate one
or more handlers. Firegex compiles the code server-side and returns 400
on syntax/import errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | ||
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||