Net::RackSpace::CloudServers::Image - a RackSpace CloudServers Image
version 0.15
use Net::RackSpace::CloudServers; use Net::RackSpace::CloudServers::Image; my $cs = Net::RackSpace::CloudServers->new( user => 'myusername', key => 'mysecretkey' ); my $img = Net::RackSpace::CloudServers::Image->new( cloudservers => $cs, id => '1', name => 'test', ); # get list: my @images = $cs->get_image(); foreach my $image ( @images ) { print 'Have image ', $image->name, ' id ', $image->id, "\n"; } # get detailed list my @images = $cs->get_image_detail(); foreach my $image ( @images ) { print 'Have image ', $image->name, ' id ', $image->id, ' created ', $image->created, ' updated ', $image->updated, # ... "\n"; }
The constructor creates an Image:
my $image = Net::RackSpace::CloudServers::Image->new( cloudserver => $cs id => 'id', name => 'name', );
This normally gets created for you by Net::RackSpace::Cloudserver's get_image or get_image_details methods. Needs a Net::RackSpace::CloudServers object.
The id is used for the creation of new images
The name which identifies the image
In case of a backup, which server ID does the backup image refer to
When was the image created, format: 2010-10-10T12:00:00Z
When was the image last updated, format: 2010-10-10T12:00:00Z
In case of a backup, whether it's SAVING; for a standard image, whether it's ACTIVE.
In case of a backup, the status progress
Marco Fontani, <mfontani at cpan.org>
<mfontani at cpan.org>
Please report any bugs or feature requests to bug-net-rackspace-cloudservers at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-RackSpace-CloudServers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-rackspace-cloudservers at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::RackSpace::CloudServers::Image
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-RackSpace-CloudServers
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-RackSpace-CloudServers
CPAN Ratings
http://cpanratings.perl.org/d/Net-RackSpace-CloudServers
Search CPAN
http://search.cpan.org/dist/Net-RackSpace-CloudServers/
Copyright 2009 Marco Fontani, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::RackSpace::CloudServers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::RackSpace::CloudServers
CPAN shell
perl -MCPAN -e shell install Net::RackSpace::CloudServers
For more information on module installation, please visit the detailed CPAN module installation guide.