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, Inc. 47
Chapter 4 Lab Manager API Method Reference
GetConfigurationByName
Thiscalltakesthenameofaconfigurationandreturnsanarrayofconfigurations
matchingthatname.Configurationnamesarenotunique.Morethanoneconfiguration
withagivennamecanexist.Ifconfigurationswiththatnamedonotexist,anempty
arrayisreturned.
Syntax
Configuration [] config = GetConfigurationByName(“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";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
//
//** Get Configuration objects
//
LabManagerSoap.Configuration [] Configs =
binding.GetConfigurationByName("Config24Capture");
Table 4-15. Arguments
Field Data Type Description
name string Configurationname.
Table 4-16. Response
Field Data Type Description
configuration[] Configuration ArrayofConfigurationobjectswiththesamename.