Skip to content

Virtual Machines

On this page
  1. Endpoints

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

EndpointDescription
GET /v1/plansList plans
GET /v1/imagesList images
GET /v1/zonesList zones
GET /v1/vmsList VMs
POST /v1/vmsCreate a VM
GET /v1/vms/summaryGet VM summary
GET /v1/vms/{uid}Get a VM
DELETE /v1/vms/{uid}Delete a VM
POST /v1/vms/{uid}/startStart a VM
POST /v1/vms/{uid}/stopStop a VM
POST /v1/vms/{uid}/rebootReboot a VM
POST /v1/vms/{uid}/resizeResize a VM
GET /v1/vms/{uid}/metrics/currentGet current VM metrics
GET /v1/vms/{uid}/metrics/historyGet VM metric history
GET /v1/vms/{uid}/firewall-policiesList a VM's firewall policies
GET /v1/vms/{uid}/domainsList custom domains
POST /v1/vms/{uid}/domainsAdd a custom domain
DELETE /v1/vms/{uid}/domains/{domain_uid}Delete a custom domain
POST /v1/vms/{uid}/domains/{domain_uid}/verifyVerify a custom domain
GET /v1/vms/{uid}/appsList VM apps
POST /v1/vms/{uid}/appsExpose a VM app
DELETE /v1/vms/{uid}/apps/{app}Unexpose a VM app
PUT /v1/vms/{uid}/app-portSet the VM app port
POST /v1/vms/{uid}/execRun a command on a VM