NAME
Net::Gandi::Hosting::Disk - Interface to manage Disk.
DESCRIPTION
A disk represents a virtual storage device you can attached to a VM. It then behaves like a block device where you can read and write data.
list
List the disks associated with apikey that match the filter.
Available params are:
id
state
size
name
type
vm_id
datacenter_id
items_per_page
page
sort_by
count
Returns the number of VMs associated with apikey, matched by filters, if specified.
Available params are:
id
state
size
name
type
vm_id
datacenter_id
info
Return a mapping of the disk attributes.
Parameter: None
get_options
Returns available kernels and kernel options for this disk.
Parameter: None
create
Create a disk.
create_from
Create a disk with the same data as the disk identified by src_disk_id.
update
Update the disk to match the expected attributes.
delete
Delete a disk. Warning, erase data. Free the quota used by the disk size.
attach
Attach a disk to a VM. The account associated with apikey MUST own both VM and disk. A disk can only be attached to one VM.
Params: vm_id
detach
Detach a disk from a VM. The disk MUST not be mounted on the VM. If the disk position is 0, the VM MUST be halted to detach the disk
Params: vm_id
AUTHOR
Natal Ngétal, <hobbestig@cpan.org>