3.0

Table Of Contents
Lab Manager SOAP API Guide
38 VMware, Inc.
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";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
//** Clone Configuration
int newConfigId = binding.ConfigurationClone(24, "ClonedConfig24");
Console.WriteLine("New Config ID=" + newConfigId.ToString());
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
ConfigurationDelete
ThismethoddeletesaconfigurationfromtheWorkspace.Youcannotdeleteadeployed
configuration.
Syntax
ConfigurationDelete(6);
Field Data Type Description
workspaceId int NumericidentifierofthenewWorkspaceconfiguration.