Read the console
The last lines of the VM's console output, as one string.
GET /v1/tenants/{tenant}/vms/{name}/logs
curl -X GET "https://api.shako.dev/v1/tenants/acme/vms/web1/logs?lines=50" \
-H "Authorization: Bearer $SHAKO_API_KEY"200
"[ OK ] Started ssh.service - OpenBSD Secure Shell server.\n"Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: contributor or owner.
Path parameters
tenantstringrequired- The tenant's name, from GET /v1/tenants.
namestringrequired- The VM's name.
Query parameters
linesinteger, 1 to 10000default: 100- How many of the last lines of the console to give.
Response
200 with a string.
The errors. All the endpoints of VMs.