attach_volume
Attaches a CloudStack volume to a specified virtual machine using volume and VM IDs, with an optional device ID to control where the disk is mapped.
Instructions
Attach volume to virtual machine
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": {
"id": "<id>",
"virtualmachineid": "<virtualmachineid>"
},
"name": "attach_volume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Volume ID | |
| deviceid | No | Device ID | |
| virtualmachineid | Yes | VM ID to attach to |