Networking
Attach VM to VPC
Attach a virtual machine to a VPC. The VM gains a private network interface inside the VPC.
Use ip to request a specific private IP from the VPC's CIDR range. If omitted, an IP is auto-assigned.
post/api/v1/vms/{id}/vpc
Path parameters
idstring uuid required
VM ID (UUID)
Headers
X-Project-IDstring uuid required
Project ID. Required for all mutating operations (create, delete, power actions, resize).
Request body
Example request
{
"ip": "10.0.1.42"
}Response
VM attached to VPC
Example response
{
"success": true,
"message": "Operation completed successfully"
}