Networking
Attach VM to VPC
Changed onAttach 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
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/vms/{id}/vpc
- AuthAPI key in header X-API-Key
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"
}Changes
- info
endpoint added
- info