NAME
Net::OpenStack::Compute - Bindings for the OpenStack compute api.
VERSION
version 1.0301
SYNOPSIS
use Net::OpenStack::Compute;
my $compute = Net::OpenStack::Compute->new(
auth_url => $auth_url,
user => $user,
password => $password,
project_id => $project_id,
region => $region, # Optional
);
$compute->create_server(name => 's1', flavor => $flav_id, image => $img_id);
DESCRIPTION
This is the main class responsible for interacting with OpenStack Compute. Also see oscompute for the command line tool that is a wrapper for this class.
METHODS
get_server
get_server($id)
get_servers
get_servers()
get_servers(detail => 0) # Detail defaults to 1.
create_server
create_server(name => $name, flavor => $flavor, image => $image)
delete_server
delete_server($id)
get_image
get_image($id)
get_images
get_images()
get_images(detail => 0) # Detail defaults to 1.
create_image
create_image(name => $name, server => $server_id)
delete_image
delete_image($id)
get_flavor
get_flavor($id)
get_flavors
get_flavors()
get_flavors(detail => 0) # Detail defaults to 1.
AUTHOR
Naveed Massjouni <naveedm9@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Naveed Massjouni.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.