VMware::API::LabManager is a Perl module that provides a Perl interface to VMware's Labmanager SOAP interface. It has a one-to-one mapping for most of the commands exposed in the external API as well as a many commands exposed in the internal API.
Using this module you can checkout, deploy, undeploy and delete configurations. You can also get lists of configurations and guest information as well.
Lab Manager is a product created by VMware that provides development and test teams with a virtual environment to deploy systems and networks of systems in a short period of a time.
SYNOPSIS
This module has been developed against VMware vCenter Lab Manager 4.0 (4.0.1.1233)
Code to checkout, deploy, undeploy and delete a configuration:
use VMware::API::LabManager;
my $labman = new VMware::LabManager ( $username, $password, $server, $orgname, $workspace );
# Get the id of the config you are going to check out
my $config = $labman->GetSingleConfigurationByName("myConfigName");
# Checkout the config
my $checked_out_config_id = $labman->ConfigurationCheckout($lib_config_id[0],"NEW_WORKSPACE_NAME");
# Deploy the config
my $ret = $labman->ConfigurationDeploy($checked_out_config_id,4); # The 4 is for the fencemode
# Undeploy the config
my $ret = $labman->ConfigurationUndeploy($chkd_out_id);
# Delete the config
my $ret = $labman->ConfigurationDelete($chkd_out_id); # You really should be sure before doing this :)
# Check for last SOAP error
print $labman->getLastSOAPError();
Product's homepage
Requirements:
· Perl