1.2

1.2

scpcli virtualserver volume create
--size <value>
--name <value>
[--max_iops <value>]
[--max_throughput <value>]
[--snapshot_id <value>]
[--tags <value>]
[--volume_type <value>]

Description

Create a Volume.

State ACTIVE (CURRENT)

VersionNot Before
1.2-

Parameters

NameTypeDescriptionExample
size
required
integerVolume size, in gibibytes(GiB), must be multiple of 8.104
name
required
stringVolume namevolume01
max_iops
optional
integerThe number of distinct read or write operations a volume can process in a single second.10000
max_throughput
optional
integerThe actual amount of data (volume) transferred to or from the storage device per second.500
snapshot_id
optional
stringSnapshot ID used to create the volume. when specified, request volume size must be greater than or equal to the size of the snapshot.cceed636-1f1e-4bb0-b85c-4e5b9e0bf790
tags
optional
arrayTags'{"key": "Key", "value": "Value"}'
volume_type
optional
stringSets the Volume type. if volume type is not set, the volume will be created using default type (SSD).SSD

Responses

NameDescriptionExample
idServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
attached_atThe time when the volume was attached to the server.
deviceDevice name such as, /dev/vda./dev/vda