Set the routing rules of a listener
set_rulesREPLACES the http/https listener's rules: each sends a hostname and/or path prefix to an http pool (up to 25). They are evaluated most specific first, whatever the order sent; anything unmatched goes to the default pool. No wildcard hostname on https. Each https hostname gets a certificate once it points to the load balancer. 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>",
"listener": "<listener>",
"rules": "<rules>"
},
"name": "set_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lb | Yes | Load balancer id, as returned by list_load_balancers or create_load_balancer. | |
| rules | Yes | The listener's full list of rules, up to 25; [] sends everything to the default pool. | |
| listener | Yes | Listener id, from get_load_balancer. |