Sleep a VM
POST
Puts a running VM to sleep. It keeps its memory and disk and wakes where it left off. Sleeping an asleep VM answers 200.
apiKeyheader
AuthorizationBearer <hmk_…>An API key from the dashboard or homemade api-key create.
vmId*stringAsleep, or falling asleep (pending).
application/json- response
ok*booleanpending?booleanAccepted; the change finishes in the background.
state*stringValue in
"queued""placing""booting""injecting""running""asleep""deep_sleeping""deep_asleep""stopped""failed"curl -X POST 'https://api.homemade.dev/api/vms/string/sleep'Example Response
{ "ok": true, "pending": true, "state": "queued"}