2.4

Table Of Contents
VMware® Lab Manager SOAP API Guide
36 VMware, Inc.
//** Get configuration identifier and deployed status from object
int configurationId = Config.id;
bool deployed = Config.isDeployed;
//** Capture configuration if it’s deployed
if (deployed)
{
//** Save capture with date and time stamp
string captureName=Config.name + DateTime.Now.ToString();
string LMStorageServer = "LM Server";
binding.ConfigurationCapture(configurationId, captureName);
}
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
ConfigurationCheckout
Thismethodchecksoutaconfigurationfromtheconfigurationlibraryandmovesitto
theWorkspaceunderadifferentname.
Syntax
int result = ConfigurationCheckout(7, “Config7May10”);
Arguments
Response
Table 4-4. Arguments
Field Data Type Description
configurationID int Numericidentifieroftheconfigurationintheconfiguration
library.
workspaceName string Workspacenameofthecheckedoutconfiguration.
Table 4-5. Response
Field Data Type Description
workspaceID int NumericidentifieroftheconfigurationintheWorkspace.