opn_haproxy_update
Modify an OPNsense HAProxy resource by specifying only fields to change. Validate with configtest and apply via reconfigure afterward.
Instructions
Update an existing HAProxy resource.
Use this to modify any field on a HAProxy resource. Only provide the fields you want to change — omitted fields keep their current values.
To enable/disable a resource, set config={"enabled": "1"} or {"enabled": "0"}.
Resource types: frontends, backends, servers, actions, acls, healthchecks, errorfiles, resolvers, mailers.
NOTE: Changes are NOT applied until you call opn_reconfigure_haproxy. Call opn_haproxy_configtest first to validate the configuration.
Returns: dict with 'result' indicating success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_type | Yes | ||
| uuid | Yes | ||
| config | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||