/v2/microvmsCreate a MicroVM
To create a MicroVM, send a POST request to /v2/microvms.
name and source are required. Set source.oci_ref to create the MicroVM from a
linux/amd64 container image, or source.checkpoint_id to create it from a checkpoint.
With oci_ref, region and size are also required.
A MicroVM created from an image is returned with state set to creating. Poll
GET /v2/microvms/{microvm_id} until state is running. A MicroVM created from a
checkpoint is usually returned already running.
All settings are fixed at creation. There is no update endpoint.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
3 documented failures
INVALID_SIZEno supported size matches the requested resources: 3 vCPU with 2048 MiB of memory (supported: 1vCPU/2048MiB, 2vCPU/4096MiB, 8vCPU/16384MiB, 16vCPU/32768MiB)
INVALID_AUTO_PAUSEauto_pause.enabled cannot be false; omit it to keep the 5 minute default, or set idle_timeout up to the account maximum
FAILED_PRECONDITIONcheckpoint 01a11cd5-25dd-790f-a77c-3677f24bca85 is still being captured; retry delete once the capture completes
One documented failure
PERMISSION_DENIEDpermission denied
A 400 is returned: The request was malformed, failed validation, or is not allowed in the resource's current state. A 401 is returned: Authentication failed due to invalid credentials. A 403 is returned: The token does not have the required scope, or your team has reached a limit. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.