ByCloud Docs
GuidesCLIAPISDK

Create volume

bycloud block-storage storage-volumes --size <size> --volume_type <volume_type> [flags]

Create a new block storage volume

Options

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Body Options

--size

integerrequired

Size in GB

--volume_type

stringrequired

Storage type (hdd for spinning disk, ssd for solid state, nvme for high-performance NVMe)

Values: "hdd", "ssd", "nvme"

--description

stringoptional

--image_id

stringoptional

Create volume from image

--metadata

objectoptional

--multiattach

booleanoptional

Default: false

--name

stringoptional

--snapshot_id

stringoptional

Create volume from snapshot

--source_volume_id

stringoptional

Clone from existing volume

Command

bycloud block-storage storage-volumes \
--size 100 \
--volume_type hdd

Output

Success