2.4
Table Of Contents
- VMware® Lab Manager SOAP API Guide
- Contents
- Preface
- 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
48 VMware, Inc.
Console.WriteLine("fenceMode = " +
Configs[i].fenceMode.ToString());
Console.WriteLine("type = " + Configs[i].type.ToString());
Console.WriteLine("owner = " + Configs[i].owner);
Console.WriteLine("dateCreated = " +
Configs[i].dateCreated.ToString());
Console.WriteLine();
Console.ReadLine();
}
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}
GetMachine
Thiscalltakesthenumericidentifierofamachineandreturnsitscorresponding
Machineobject.
Syntax
Machine mach = GetMachine(10);
Arguments
Response
Sample Code: C#
try
{
LabManagerSoap.VMwareLabManagerSOAPinterface binding = new
LabManagerSoap.VMwareLabManagerSOAPinterface();
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
Table 4-17. Arguments
Field Data Type Description
machineID int Machineidentifier.
Table 4-18. Response
Field Data Type Description
machine Machine Machineobjectmatchingthemachineidentifier.