add_nic_to_virtual_machine
Attach a network interface to a CloudStack virtual machine and optionally assign a specific IP address.
Instructions
Add a network interface to a virtual machine with optional IP address specification
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": {
"virtualmachineid": "<virtualmachineid>",
"networkid": "<networkid>"
},
"name": "add_nic_to_virtual_machine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ipaddress | No | Specific IP address to assign to the NIC (optional) | |
| networkid | Yes | Network ID for the new NIC | |
| virtualmachineid | Yes | VM ID to add NIC to |