opn_haproxy_update
Update an existing HAProxy resource by specifying only the fields to change. Validate with opn_haproxy_configtest, then apply changes using opn_reconfigure_haproxy.
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 |
|---|---|---|---|
| uuid | Yes | ||
| config | Yes | ||
| resource_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||