NAME
Net::RackSpace::CloudServers::Image - a RackSpace CloudServers Image
VERSION
version 0.06_00
SYNOPSIS
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";
}
METHODS
new / BUILD
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.
id
The id is used for the creation of new images
name
The name which identifies the image
serverid
In case of a backup, which server ID does the backup image refer to
created
When was the image created, format: 2010-10-10T12:00:00Z
updated
When was the image last updated, format: 2010-10-10T12:00:00Z
status
In case of a backup, whether it's SAVING; for a standard image, whether it's ACTIVE.
progress
In case of a backup, the status progress
AUTHOR
Marco Fontani, <mfontani at cpan.org>
BUGS
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.
SUPPORT
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
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
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.