Machine Lifecycle

Sleep a running machine

post/v1/machines/{machine_id}/sleep

Path parameters

machine_idstring required

Headers

X-Dedalus-Org-Idstring
Idempotency-Keystring required

Response

OK

autosleep_secondsinteger required

Seconds of inactivity before autosleep. 0 disables autosleep.

desired_state'running' | 'sleeping' | 'destroyed' required
machine_idstring required
memory_mibinteger required

Memory in MiB.

storage_gibinteger required
vcpunumber double required

CPU in vCPUs.

Changes

Changed in 2 of the 8 revisions of this API.223

  • c756c361d33d222See the full diff
    • for the path request parameter machine_id, the minLength was increased from 0 to 4

      request-parameter-min-length-increased

    • added the pattern ^dm-[a-z0-9]([a-z0-9-]*[a-z0-9])?$ to the path request parameter machine_id

      request-parameter-pattern-added

    • for the path request parameter machine_id, the maxLength was set to 253

      request-parameter-max-length-set

    • deleted the header request parameter If-Match

      request-parameter-removed

    • added the required property autosleep_seconds to the response with the 200 status

      response-required-property-added

    • added the required property autosleep_seconds to the response with the 202 status

      response-required-property-added

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog