4.0

Table Of Contents
Lab Manager SOAP API Reference
40 VMware, Inc.
Console.WriteLine("externalIP = " + machines[i].externalIP);
Console.WriteLine("status = " + machines[i].status.ToString());
Console.WriteLine("isDeployed = " +
machines[i].isDeployed.ToString());
Console.WriteLine();
}
Console.ReadLine();
}
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
LiveLink
ThismethodallowsyoutocreateaLiveLinkURLtoalibraryconfiguration.
Syntax
string url = LiveLink(“LiveLinkWin2K”));
Arguments
Response
C# Sample Code
try
{
LabManagerSoap.LabManagerSOAPinterface binding = new
LabManagerSoap.LabManagerSOAPinterface();
//** Create login
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
binding.AuthenticationHeaderValue.workspacename = "MyWorkspace";
binding.Url =
"https://demo18.LabManager.com/LabManager/SOAP/LabManager.asmx";
binding.Timeout = 10 * 60 * 1000; // 10 minutes
ServicePointManager.CertificatePolicy = new CertificateAccepter();
//** Get Configuration object
LabManagerSoap.Configuration Config =
binding.GetSingleConfigurationByName("Win2kBEA");
//** If configuration is deployed, livelink it
if (Config.isDeployed)
{
string captureName= "Win2kBEA" + DateTime.Now.ToString();
Field Data Type Description
configurationName string Thenameofalibraryconfiguration.
Field Data Type Description
URL string Astringcontainingtheconfiguration
URLinthelibrary.TheURLcanbe
sentinanemailtorecreatethe
configurationwhenclicked.