2.5

Table Of Contents
VMware, Inc. 51
Chapter 4 Lab Manager API Method Reference
Console.WriteLine("isDeployed = " + machine.isDeployed.ToString());
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
GetSingleConfigurationByName
Thiscalltakesaconfigurationname,searchesforitinboththeconfigurationlibrary
andWorkspaceandreturnsitscorrespondingConfigurationobject.Anerroris
returnedifmorethanoneconfigurationexistswiththatname.
Syntax
Configuration config = GetSingleConfigurationByName(“Config9”);
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";
Table 4-21. Arguments
Field Data Type Description
name string Configurationname.
Table 4-22. Response
Field Data Type Description
configuration Configuration Configurationobject.