crusoe storage disks create
Create a disk.
Usage​
crusoe storage disks create --name <name> --size <size> [flags]
Flags​
| Flag | Description |
|---|---|
--block-size int | The block size of the disk. Must be either 512 or 4096. Not applicable for shared volumes |
-f, --format string | Output format. Supported formats: pretty, json (default: "pretty") |
-h, --help | Help for create |
--json | Output in json format. Shorthand for --format json |
--location string | Location. List available locations with crusoe locations list |
--name string | [Required] Disk name. Alphanumeric characters, underscores and dashes are allowed |
--project-id string | Project ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
--project-name string | Project Name. Optional if set in CRUSOE_DEFAULT_PROJECT env variable or the config file |
--size string | [Required] Disk Size. Format: [Number][Unit] where valid units are GiB and TiB. Range: 1GiB–10TiB |
--type string | Disk Type. Allowed values: persistent-ssd (default: "persistent-ssd") |
Examples​
Create a 100 GiB persistent SSD:
crusoe storage disks create \
--name my-data-disk \
--size 100GiB \
--location us-northcentral1-a