Stop VM
POST
/projects/:projectId/vms/:vmId/stopStops (powers off) a virtual machine.
This operation is asynchronous. The commandId in the response is an internal
identifier and is not queryable via any public endpoint. To observe completion, poll
GET /v1/projects/{projectId}/vms/{vmId} and watch the bootStatus and
operationStatus fields; a background reconciliation job refreshes VM state roughly every
10 seconds, so expect a short delay rather than immediate consistency. The request body is optional
and currently unused, reserved for future parameters.
Request
Responses
- 202
- 400
The stop request was accepted.
The request was invalid.