create_load_balancer_rule
Creates a CloudStack load balancer rule that maps a public IP and port to a VM's private port, using a selected algorithm and optional TCP/UDP protocol.
Instructions
Create a load balancer rule
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": {
"publicipid": "<publicipid>",
"algorithm": "<algorithm>",
"name": "<name>",
"privateport": "<privateport>",
"publicport": "<publicport>"
},
"name": "create_load_balancer_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the load balancer rule | |
| protocol | No | Protocol (tcp, udp) | |
| algorithm | Yes | Load balancer algorithm (roundrobin, leastconn, source) | |
| publicipid | Yes | Public IP address ID | |
| publicport | Yes | Public port | |
| privateport | Yes | Private port on the VM |