update_vm_affinity_group
Update a VM's affinity group memberships using comma-separated group IDs or names to adjust CloudStack placement and policy associations.
Instructions
Update VM affinity group memberships
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>"
},
"name": "update_vm_affinity_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | VM ID | |
| affinitygroupids | No | Comma-separated affinity group IDs | |
| affinitygroupnames | No | Comma-separated affinity group names |