VMs
A VM is a Linux computer of its own. It sleeps when it is quiet, and it wakes on the next SSH login, request or cron job.
Endpoints
| Method | Path | Returns |
|---|---|---|
POST | /v1/tenants/{tenant}/vms | 201 with the VM object. |
GET | /v1/tenants/{tenant}/vms | 200 with {"data": [...]}: a list of the VM object or the unreachable VM object. |
GET | /v1/tenants/{tenant}/vms/{name} | 200 with the VM info object. |
PATCH | /v1/tenants/{tenant}/vms/{name} | 200 with the VM object. |
DELETE | /v1/tenants/{tenant}/vms/{name} | 200 with the names of the path and "deleted": true. |
POST | /v1/tenants/{tenant}/vms/{name}/sleep | 200 with the VM object. |
POST | /v1/tenants/{tenant}/vms/{name}/wake | 200 with the wake object. |
POST | /v1/tenants/{tenant}/vms/{name}/restart | 200 with the VM object. |
POST | /v1/tenants/{tenant}/vms/{name}/resize | 200 with the VM object. |
POST | /v1/tenants/{tenant}/vms/{name}/rename | 200 with the VM object. |
POST | /v1/tenants/{tenant}/vms/{source}/copy | 201 with the VM object. |
GET | /v1/tenants/{tenant}/vms/{name}/logs | 200 with a string. |
GET | /v1/tenants/{tenant}/vms/{name}/crons | 200 with the crons object. |
Objects
- The VM object: A VM. Create, get, update, the actions and copy answer with it; list answers with a list of it.
- The VM info object: Get answers with the VM object and these fields.
- The wake object: Wake answers with the VM object and these fields.
- The unreachable VM object: A VM in the list whose host does not answer now. Try again later.
- The crons object: The crons of a VM and its next wake.