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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_type": "<resource_type>",
"uuid": "<uuid>",
"config": "<config>"
},
"name": "opn_haproxy_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | ||
| config | Yes | ||
| resource_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||