Use List Volume API to list all volumes on the server,
This function is for cloud user
Parameters
Parameters | Type | Value | Description |
---|---|---|---|
act | GET | volume | The action will create volume for a particular user and vps. |
vps_sel | POST | vpsid | Vpsid for which volume is to be created. |
vol_size | POST | float | Size of volume to be created in GB's. |
format | POST | text | Format for volume ext4 or xfs. |
attach_vol | POST | int | Pass 1 to create and attach it to vps or 0 to just create it. |
volname | POST | text | Name of the volume. |
Output
Array
(
[247] => Array
(
[did] => 247
[disk_uuid] => d4sl17zln359niz8
[st_uuid] => rjpzdi7exu0njjeh
[vps_uuid] => tjkgme2cjn9tgzet
[path] => /dev/vgs/vsv1003attach-d4sl17zln359niz8-tjkgme2cjn9tgzet
[primary] => 0
[size] => 1.000
[size_unit] =>
[type] => block
[format] => raw
[num] => 1
[rescue] => 0
[extra] =>
[bus_driver] =>
[bus_driver_num] => 0
[user_uid] => 2
[disk_name] => sec
[mnt_point] => /mnt
[stid] => 1
[vpsid] => 143
[vps_name] => v1003
[serid] => 1
[sgid] => 0
[user_email] => testvirt.com
)
)