2.4
Table Of Contents
- VMware® Lab Manager SOAP API Guide
- Contents
- Preface
- Introducing VMware Lab Manager SOAP API
- Getting Started with the Lab Manager SOAP API
- Lab Manager API Data Types
- Lab Manager API Method Reference
- ConfigurationCapture
- ConfigurationCheckout
- ConfigurationClone
- ConfigurationDelete
- ConfigurationDeploy
- ConfigurationPerformAction
- ConfigurationSetPublicPrivate
- ConfigurationUndeploy
- GetConfiguration
- GetConfigurationByName
- GetMachine
- GetMachineByName
- GetSingleConfigurationByName
- ListConfigurations
- ListMachines
- LiveLink
- MachinePerformAction
- Index
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 Workspacenameofthechecked‐outconfiguration.
Table 4-5. Response
Field Data Type Description
workspaceID int NumericidentifieroftheconfigurationintheWorkspace.