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, Inc. 35
Chapter 4 Lab Manager API Method Reference
ConfigurationCapture
ThismethodcapturesaWorkspaceconfigurationandsavesittoaspecifiedLab
Managerstorageserverwithaname.
Syntax
int newConfigId = ConfigurationCapture(10,
“Config10Capture”);
Arguments
Response
Sample Code: C#
try
{
//**
//** LabManagerSoap is the name of the web reference in Visual Studio
//**
LabManagerSoap.VMwareLabManagerSOAPinterface binding = new
LabManagerSoap.VMwareLabManagerSOAPinterface();
//** Create login
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
//** Get Configuration object
LabManagerSoap.Configuration Config =
binding.GetSingleConfigurationByName("Config26");
Table 4-2. Arguments
Field Data Type Description
configurationID int Configuration
identifier.
newLibraryName string Capturename.
Table 4-3. Response
Field Data Type Description
configurationID int Configurationidentifierofthenew
capture.