Create a disk from a file upload

Create a new disk and upload the contents of a file to that disk. Use --snapshot to optionally create a snapshot of the disk after the upload is complete. If creating a snapshot, optionally use the --image options to create an image from that snapshot.

The start, write, stop, and finalize subcommands can be used for lower- level operations.

Options

--description
--disk
The name of the disk to create
--disk-block-size
51220484096
The desired size of the disk's blocks
--disk-size
The size of the disk to create. If unspecified, the size of the file will be used, rounded up to the nearest GB
--image
If supplied, create an image with the given name. Requires the creation of a snapshot
--image-description
The description for the image created out of the snapshot of this disk
--image-os
The OS of this image (e.g. Debian)
--image-version
The version of this image (e.g. 11, focal, a9e77e3a, 2023-04-06T14:23:34Z)
--path
Path to the file to import
--profile
Configuration profile to use for commands
--project
Name or ID of the project
--snapshot
If supplied, create a snapshot with the given name

Subcommands