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
Lab Manager SOAP API Guide
54 VMware, Inc.
ListMachines
ThismethodreturnsanarrayoftypeMachine.ThemethodreturnsoneMachineobject
foreachvirtualmachineinaconfiguration.
Syntax
Machine [] machines = ListMachines(1);
Arguments
Response
Sample Code: C#
try
{
LabManagerSoap.VMwareLabManagerSOAPinterface binding = new
LabManagerSoap.VMwareLabManagerSOAPinterface();
binding.Url =
"https://demo18.LabManager.com/LabManager/SOAP/LabManager.asmx";
binding.Timeout = 10 * 60 * 1000; // 10 minutes
ServicePointManager.CertificatePolicy = new CertificateAccepter();
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
binding.AuthenticationHeaderValue.organizationname = "MyOrg";
int configurationType = 1;
//** Get workspace configuration
LabManagerSoap.Configuration [] configurations =
binding.ListConfigurations(configurationType);
for (int j=0; j < configurations.Length; j++)
{
Console.WriteLine("Configuration = " +
configurations[j].name.ToString());
Field Data Type Description
configurationID int Configurationnumericidentifier.
Field Data Type Description
machine[] Machinearray ArrayofMachineobjects.