VM images
A VM image is the OS template used to boot a new VM's root disk. NimbusNexus ships public images, and you can upload your own custom images, built with tools like Packer.
Public images
GET /api/v1/image/ lists the images you can use; visibility=public narrows it to the public ones. An image is identified by its id, a UUID, and that's what you pass as image when you create a VM. Names are labels, not versioned slugs, so look the id up instead of hard-coding a name.
When a VM boots, it gets the SSH key you named in sshs (see SSH keys) and any user_data you passed; an image with cloud-init applies them on first boot.
Custom images
A custom image takes two calls:
POST /api/v1/image/creates the image record from aname(at least 5 characters), adisk_formatand acontainer_format, and returns itsid. Optionally setvisibility(defaultprivate: your project only) andsubscription, the billing plan (defaultHourly).POST /api/v1/image/fileuploads the file, as multipartfileandimage_id. OrPOST /api/v1/image/importwith{"id": "…", "url": "…"}fetches the image from a URL.
Accepted file extensions are .img, .qcow2, .vmdk, .vhd, .vhdx, .raw, .iso, .ami, .ari, .aki and .vdi; any other extension answers 400.
Custom images are billed per GB, rounded up to a whole GB, as their own product, on the plan in subscription; see Pricing data.
Regions
Image calls work in your session's region. There's no call to copy an image to another region.
What's next
- Virtual machines — provision a VM with one of these images.
- VM sizes — the compute shape the image boots into.
- Backups — snapshots and backups of a VM's volumes.