2.4

Table Of Contents
VMware, Inc. 47
Chapter 4 Lab Manager API Method Reference
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 objects
//
LabManagerSoap.Configuration [] Configs =
binding.GetConfigurationByName("Config24Capture");
//
//** Write to the console all configurations and their properties.
//
for (int i=0; i < Configs.Length; i++)
{
Console.WriteLine("Config name = " + Configs[i].name);
Console.WriteLine("id = " + Configs[i].id.ToString());
Console.WriteLine("description = " + Configs[i].description);
Console.WriteLine("isPublic = " +
Configs[i].isPublic.ToString());
Console.WriteLine("isDeployed = " +
Configs[i].isDeployed.ToString());
Table 4-15. Arguments
Field Data Type Description
name string Configurationname.
Table 4-16. Response
Field Data Type Description
configuration[] Configuration ArrayofConfigurationobjectswiththesamename.