3.0
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, Inc. 51
Chapter 4 Lab Manager API Method Reference
Console.WriteLine("isDeployed = " + machine.isDeployed.ToString());
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
GetSingleConfigurationByName
Thiscalltakesaconfigurationname,searchesforitinboththeconfigurationlibrary
andWorkspaceandreturnsitscorrespondingConfigurationobject.Anerroris
returnedifmorethanoneconfigurationexistswiththatname.
Syntax
Configuration config = GetSingleConfigurationByName(“Config9”);
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";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
Field Data Type Description
name string Configurationname.
Field Data Type Description
configuration Configuration Configurationobject.