This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Create Server Volume

1 - 1.2

scpcli virtualserver server add volume
--server_id <value>
--volume_id <value>
[--delete_on_termination <value>]
[--device <value>]

Description

Attach volume that are created to server.

State ACTIVE (CURRENT)

VersionNot Before
1.2-

Parameters

NameTypeDescriptionExample
server_id
required
stringServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
volume_id
required
stringVolume ID3f500f00-ed80-4566-a057-e31760226f9a
delete_on_termination
optional
booleanDelete the boot volume when the server is terminated.False
device
optional
stringDevice name such as, /dev/vda./dev/vda

Responses

NameDescriptionExample
idVolume Attachment ID3ad1cc18-1b09-4f51-9b1d-4ce4243f6a4c
delete_on_terminationDelete the boot volume when the server is terminated.False
deviceDevice name such as, /dev/vda./dev/vda
server_idServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
volume_idVolume ID3f500f00-ed80-4566-a057-e31760226f9a

2 - 1.1

scpcli virtualserver server add volume
--server_id <value>
--volume_id <value>
[--delete_on_termination <value>]
[--device <value>]

Description

Attach volume that are created to server.

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.120260531

Parameters

NameTypeDescriptionExample
server_id
required
stringServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
volume_id
required
stringVolume ID3f500f00-ed80-4566-a057-e31760226f9a
delete_on_termination
optional
booleanDelete the boot volume when the server is terminated.False
device
optional
stringDevice name such as, /dev/vda./dev/vda

Responses

NameDescriptionExample
idVolume Attachment ID3ad1cc18-1b09-4f51-9b1d-4ce4243f6a4c
delete_on_terminationDelete the boot volume when the server is terminated.False
deviceDevice name such as, /dev/vda./dev/vda
server_idServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
volume_idVolume ID3f500f00-ed80-4566-a057-e31760226f9a

3 - 1.0

scpcli virtualserver server add volume
--server_id <value>
--volume_id <value>
[--delete_on_termination <value>]
[--device <value>]

Description

Attach volume that are created to server.

State ACTIVE (DEPRECATED)

Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.

VersionNot Before
1.020251231

Parameters

NameTypeDescriptionExample
server_id
required
stringServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
volume_id
required
stringVolume ID3f500f00-ed80-4566-a057-e31760226f9a
delete_on_termination
optional
booleanDelete the boot volume when the server is terminated.False
device
optional
stringDevice name such as, /dev/vda./dev/vda

Responses

NameDescriptionExample
idVolume Attachment ID3ad1cc18-1b09-4f51-9b1d-4ce4243f6a4c
delete_on_terminationDelete the boot volume when the server is terminated.False
deviceDevice name such as, /dev/vda./dev/vda
server_idServer ID2a9be312-5d4b-4bc8-b2ae-35100fa9241f
volume_idVolume ID3f500f00-ed80-4566-a057-e31760226f9a