2.5
Table Of Contents
- SOAP API Guide
- Contents
- About This Book
- Introducing VMware Lab Manager SOAP API
- Getting Started with the Lab Manager SOAP API
- Lab Manager API Data Types
- Lab Manager API Method Reference
- ConfigurationCapture
- ConfigurationCheckout
- ConfigurationClone
- ConfigurationDelete
- ConfigurationDeploy
- ConfigurationPerformAction
- ConfigurationSetPublicPrivate
- ConfigurationUndeploy
- GetConfiguration
- GetConfigurationByName
- GetMachine
- GetMachineByName
- GetSingleConfigurationByName
- ListConfigurations
- ListMachines
- LiveLink
- MachinePerformAction
- Index
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 NumericidentifierofthenewWorkspaceconfiguration.