NAME

Net::Gandi::Hosting::Disk - Disk interface

VERSION

version 1.122180

ATTRIBUTES

id

rw, Int. Id of the disk.

METHODS

list

$disk->list;

List the disk.

input: opts (HashRef) : Filtering options
output: (HashRef)     : List of disk

count

$disk->count;

Count disk.

input: opts (HashRef) : Filtering options
output: (Int)         : number of disk

info

Return a mapping of the disk attributes.

input: None
output: (HashRef) : Disk informations

get_options

Returns available kernels and kernel options for this disk.

Parameter: None

create

Create a disk.

input: disk_spec (HashRef) : specifications of the Disk to create
output: (HashRef)         : Operation disk create

create_from

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

Update the disk to match the expected attributes.

input: update_spec (HashRef) : specifications of disk to update
output: (HashRef)  : Disk update operation

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

delete

Delete a disk. Warning, erase data. Free the quota used by the disk size.

input: None
output: (HashRef): Operation disk delete

AUTHOR

Natal Ngétal

COPYRIGHT AND LICENSE

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:

Around line 246:

Non-ASCII character seen before =encoding in 'Ngétal'. Assuming UTF-8