4.0
Table Of Contents
- Lab Manager SOAP API Reference
- Contents
- About This Book
- Introducing VMware vCenter 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
- GetCurrentOrganizationName
- GetCurrentWorkspaceName
- GetMachine
- GetMachineByName
- GetSingleConfigurationByName
- ListConfigurations
- ListMachines
- LiveLink
- MachinePerformAction
- SetCurrentOrganizationByName
- SetCurrentWorkspaceByName
- Index
Lab Manager SOAP API Reference
26 VMware, Inc.
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine("Error="+e.Message);
Console.ReadLine();
}
ConfigurationClone
Thismethodclonesaworkspaceconfiguration,savesitinadatastore,andmakesitvisibleintheworkspace
underthenewname.
Syntax
int result = ConfigurationClone(6, “Config6Clone”);
Arguments
Response
C# Sample Code
try
{
//**
//** LabManagerSoap is the name of the Web reference in Visual Studio
//**
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";
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();
}
Field Data Type Description
configurationId int Numericidentifieroftheconfigurationintheconfiguration
library.
newWorkspaceName string Thenewworkspaceconfigurationname.
Field Data Type Description
configurationID int Numericidentifierofthenewworkspaceconfiguration.