Create and manage virtual machines (VMs) in a workspace: pick a plan, image and zone, control the VM's power state, resize it, read its metrics, expose ports over HTTPS, attach custom domains and run one-off commands.
Most write actions are asynchronous. They queue an operation and return 202 Accepted with an
operation_id. Poll Get an operation to follow it.
Endpoints
| Endpoint | Description |
|---|---|
GET /v1/plans | List plans |
GET /v1/images | List images |
GET /v1/zones | List zones |
GET /v1/vms | List VMs |
POST /v1/vms | Create a VM |
GET /v1/vms/summary | Get VM summary |
GET /v1/vms/{uid} | Get a VM |
DELETE /v1/vms/{uid} | Delete a VM |
POST /v1/vms/{uid}/start | Start a VM |
POST /v1/vms/{uid}/stop | Stop a VM |
POST /v1/vms/{uid}/reboot | Reboot a VM |
POST /v1/vms/{uid}/resize | Resize a VM |
GET /v1/vms/{uid}/metrics/current | Get current VM metrics |
GET /v1/vms/{uid}/metrics/history | Get VM metric history |
GET /v1/vms/{uid}/firewall-policies | List a VM's firewall policies |
GET /v1/vms/{uid}/domains | List custom domains |
POST /v1/vms/{uid}/domains | Add a custom domain |
DELETE /v1/vms/{uid}/domains/{domain_uid} | Delete a custom domain |
POST /v1/vms/{uid}/domains/{domain_uid}/verify | Verify a custom domain |
GET /v1/vms/{uid}/apps | List VM apps |
POST /v1/vms/{uid}/apps | Expose a VM app |
DELETE /v1/vms/{uid}/apps/{app} | Unexpose a VM app |
PUT /v1/vms/{uid}/app-port | Set the VM app port |
POST /v1/vms/{uid}/exec | Run a command on a VM |