opn_api
Call OPNsense API endpoints by module/controller/action path with optional arguments, validated POST bodies, and dry-run previews; saved changes require an apply/reconfigure step.
Instructions
Call any endpoint: path is module/controller/action plus positional args, e.g. "core/service/restart/unbound" or "firewall/alias/set_item/". The method defaults to what the endpoint expects. POST bodies are checked against the model unless strict=false. dry_run=true shows the request without sending it. Changes saved this way are not active until the controller's apply/reconfigure runs (see opn_items).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| method | No | ||
| params | No | ||
| strict | No | ||
| confirm | No | ||
| dry_run | No |