2.4

Table Of Contents
VMware® Lab Manager SOAP API Guide
38 VMware, Inc.
ConfigurationClone
ThismethodclonesaWorkspaceconfiguration,savesitinastorageserver,andmakes
itvisibleintheWorkspaceunderthenewname.
Syntax
int result = ConfigurationClone(6, “Config6Clone”);
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();
//** Clone Configuration
int newConfigId = binding.ConfigurationClone(24, "ClonedConfig24");
Console.WriteLine("New Config ID=" + newConfigId.ToString());
}
Table 4-6. Arguments
Field Data Type Description
configurationId int Numericidentifieroftheconfigurationinthe
configurationlibrary.
newWorkspaceName string Workspacenameoftheclone.
Table 4-7. Response
Field Data Type Description
workspaceId int NumericidentifierofthenewWorkspace
configuration.