3.0
Table Of Contents
- SOAP API Guide
- Contents
- About This Book
- 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. 29
Chapter 3 Lab Manager API Data Types
Sample Usage: C#
/**
** Visual Studio Console application in C#
** LMsoap = Web reference name for LM Web service
** Set up login code for all LM Web service method calls
**
**/
try
{
LabManagerSoap.VMwareLabManagerSOAPinterface binding = new
LabManagerSoap.VMwareLabManagerSOAPinterface();
binding.AuthenticationHeaderValue =new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "hedley";
binding.AuthenticationHeaderValue.password = "Lab Manager";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
Configuration
ThisdatastructureexistsforeachconfigurationintheLab Managerconfiguration
libraryorWorkspace.Aconfigurationisagroupofvirtualmachines(anditsoperating
systems,applications,anddata)whichLab Managercontrolsasasingleunit.
AnintegerIDfielduniquelyidentifiesaconfiguration.Configurationnamesarenot
guaranteedtobe
unique.
Table 3-4. Configuration Fields
Field Data Type Description
dateCreated dateTime Configurationcreationdate.
description string Configurationdescription.
fenceMode int 1=Notfenced.
2=Fenced–Blocktrafficinandout.
3=Fenced–Allowtrafficoutonly.
4=Fenced–Allowtrafficinandout.
id int Configurationidentifier.