Net::Proxmox::VE::Pools - Presents a pool object
version 0.32
@pools = $obj->pools(); $pool = $obj->get_pool('poolid'); $ok = $obj->create_pool(%args); $ok = $obj->create_pool(\%args); $ok = $obj->delete_pool('poolid'); $ok = $obj->update_pool('poolid', %args); $ok = $obj->update_pool('poolid', \%args);
This module implements the 'pools' section of the Proxmox API for Net::Proxmox::VE, you should use the API via that module. This documentation is for detailed reference.
To be clear, this module isn't useful as a stand alone piece of software.
String formats that are mentioned herein are done so for convenience and are defined in detail in the Proxmox API documents on the Proxmox project website.
This module doesnt enforce them, it will send whatever garbage you provide straight to the server API. So garbage-in, garbage-out!
Gets a list of pools (aka the a Pool Index)
@pools = $obj->pools();
Gets a single pool's configuration details
$pool = $obj->get_pool('poolid');
poolid is a string in pve-poolid format
Creates a new pool
$ok = $obj->create_pool( %args ); $ok = $obj->create_pool( \%args );
%args may items contain from the following list
String. The id of the pool you wish to access, in pve-poolid format. This is required.
String. This is a comment associated with the new pool, this is optional
Deletes a single pool
$ok = $obj->delete_pool('poolid')
Updates (sets) a pool's data
$ok = $obj->update_pool( 'poolid', %args ); $ok = $obj->update_pool( 'poolid', \%args );
Boolean. Removes the vms/storage rather than adding it.
String. List of storage ids (in pve-storage-id-list format)
String. List of virtual machines in pve-vmid-list format.
L<Net::Proxmox::VE>
Brendan Beveridge <brendan@nodeintegration.com.au>, Dean Hamstead <dean@bytefoundry.com.au>
This software is copyright (c) 2016 by Dean Hamstad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Proxmox::VE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Proxmox::VE
CPAN shell
perl -MCPAN -e shell install Net::Proxmox::VE
For more information on module installation, please visit the detailed CPAN module installation guide.