3.0

Table Of Contents
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=FencedBlocktrafficinandout.
3=FencedAllowtrafficoutonly.
4=FencedAllowtrafficinandout.
id int Configurationidentifier.