v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
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

vpc_idstring uuid required

VPC to attach the VM to.

ipstring

Specific private IP within the VPC's CIDR range. Auto-assigned if omitted.

Example request

{
  "ip": "10.0.1.42"
}

Response

VM attached to VPC

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Operation completed successfully"
}