Net::Gandi::Hosting::Disk - Disk interface
version 1.122180
rw, Int. Id of the disk.
$disk->list;
List the disk.
input: opts (HashRef) : Filtering options output: (HashRef) : List of disk
$disk->count;
Count disk.
input: opts (HashRef) : Filtering options output: (Int) : number of disk
Return a mapping of the disk attributes.
input: None output: (HashRef) : Disk informations
Returns available kernels and kernel options for this disk.
Parameter: None
Create a disk.
input: disk_spec (HashRef) : specifications of the Disk to create output: (HashRef) : Operation disk create
Create a disk with the same data as the disk identified by src_disk_id.
input: disk_spec (HashRef) : specifications of the Disk to create src_disk_id (Int) : source disk unique identifier output: (HashRef) : Operation disk create
Update the disk to match the expected attributes.
input: update_spec (HashRef) : specifications of disk to update output: (HashRef) : Disk update operation
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 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
Delete a disk. Warning, erase data. Free the quota used by the disk size.
input: None output: (HashRef): Operation disk delete
Natal Ngétal
This software is copyright (c) 2012 by Natal Ngétal.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Ngétal'. Assuming UTF-8
To install Net::Gandi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Gandi
CPAN shell
perl -MCPAN -e shell install Net::Gandi
For more information on module installation, please visit the detailed CPAN module installation guide.