Create VM
/projects/:projectId/vmsCreates a new virtual machine in the project.
This operation is asynchronous: VM provisioning starts in the background and the
request returns as soon as it is accepted. The response does not include a pollable operation id;
to observe completion, poll GET /v1/projects/{projectId}/vms/{vmId} using the
returned vmId and watch the operationStatus field until it leaves InProgress.
Request
Responses
- 202
- 400
- 409
The creation request was accepted; provisioning continues in the background.
The request body failed validation.
There is currently not enough capacity to host the requested configuration. Nothing is charged and
no virtual machine is created. The response body is a problem document whose code field is
insufficientCapacity, which distinguishes this from other conflict responses; retry later or
choose a smaller configuration.