3.0

Table Of Contents
VMware, Inc. 37
Chapter 4 Lab Manager API Method Reference
//
//** Get Configuration object
//
LabManagerSoap.Configuration Config =
binding.GetSingleConfigurationByName("Win2K3Exchange");
int configurationId = Config.id;
//
//** Timestamp library configuration name as new Workspace name
//
string checkoutName=Config.name + DateTime.Now.ToString();
//
//** Check out and move to Workspace
//
int newConfigID = binding.ConfigurationCheckout(Config.id,
checkoutName);
Console.WriteLine("New Config ID=" + newConfigID.ToString());
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine("Error="+e.Message);
Console.ReadLine();
}
ConfigurationClone
ThismethodclonesaWorkspaceconfiguration,savesitinadatastore,andmakesit
visibleintheWorkspaceunderthenewname.
Syntax
int result = ConfigurationClone(6, “Config6Clone”);
Arguments
Field Data Type Description
configurationId int Numericidentifieroftheconfigurationinthe
configurationlibrary.
newWorkspaceName string Workspacenameoftheclone.