create_port_forwarding_rule
Create a CloudStack port forwarding rule to map a public IP and port to a VM's private port, enabling external access to internal services.
Instructions
Create a port forwarding 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": {
"ipaddressid": "<ipaddressid>",
"privateport": "<privateport>",
"publicport": "<publicport>",
"protocol": "<protocol>",
"virtualmachineid": "<virtualmachineid>"
},
"name": "create_port_forwarding_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | Yes | Protocol (tcp, udp) | |
| publicport | Yes | Public port | |
| ipaddressid | Yes | Public IP address ID | |
| privateport | Yes | Private port on the VM | |
| publicendport | No | Public end port (for port range) | |
| privateendport | No | Private end port (for port range) | |
| virtualmachineid | Yes | VM ID |