Set the targets of a pool
set_targetsREPLACES the pool's targets with exactly this list (up to 25): send every target to keep. Each machine must be in the load balancer's private network (connect_vpc first). drain: true stops new connections to a target before maintenance. Scope: network.write.
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": {
"lb": "<lb>",
"pool": "<pool>",
"targets": "<targets>"
},
"name": "set_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lb | Yes | Load balancer id, as returned by list_load_balancers or create_load_balancer. | |
| pool | Yes | Pool id, from get_load_balancer. | |
| targets | Yes | The pool's full list of targets, up to 25; [] empties the pool. |