To edit a disk, use the following request:
XML Request Example
JSON Request Example
label - the disk label
disk_size - the disk space in GB
require_format_disk - set 1 to format disk, otherwise, set 0
add_to_linux_fstab - set 1 to add the disk to your Linux fstab file, otherwise, set 0
add_to_freebsd_fstab - set 1 to add the disk to your FreeBSD fstab file, otherwise, set 0
mounted - set 'true' to mount the disk inside OS automatically, otherwise, set 'false'.
You can use a single mounted parameter, to substitute the two add_to_linux_fstab and add_to_freebsd_fstab parameters.
mount_point - a physical location in the partition used as a root file system
file_system - for Linux templates, you can choose ext4 file system instead of the ext3 default one
To set the file system parameter, you must set the require_format_disk option.
min_iops - minimum number of IO operations per second. This is a SolidFire-related parameter.
Returns HTTP 204 response on successful deletion, or HTTP 404 when a disk with the ID specified is not found, or the URL requested is incorrect.
- You cannot decrease a size of the Integrated Storage data store disks.
- You cannot resize a disk that uses GUID Partition Table (GPT).
- You cannot decrease the disk size for Windows-based and FreeBSD-based virtual servers. Only the increase disk size option is available.
- You can't resize the primary disk for FreeBSD-based virtual servers.
- Decreasing disk size for Linux-based virtual servers may lead to the filesystem inconsistencies. Make sure you have current backups before proceeding.