PUT settings/disks/:id  

Edits specified disk


Request Parameters

label - 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
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


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.

JSON Request example

  curl -i -X PUT <api_url>/settings/disks/:id.json -d '{"disk":{"label":"for BU", "disk_size":"1", "require_format_disk":"1", "add_to_linux_fstab":"1", "add_to_freebsd_fstab":"0", "mount_point":"/mnt/disk1", "file_system":"ext4"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

XML Request example

 curl -i -X PUT <api_url>/settings/disks/:id.xml -d '<disk><label>for BU</label><disk_size>1</disk_size><require_format_disk>1</require_format_disk><add_to_linux_fstab>1</add_to_linux_fstab><add_to_freebsd_fstab>0</add_to_freebsd_fstab><mount_point>/mnt/disk1</mount_point><file_system>ext4</file_system></disk>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'