2.4

Table Of Contents
VMware® Lab Manager SOAP API Guide
56 VMware, Inc.
LabManagerSoap.Configuration Config =
binding.GetSingleConfigurationByName("Win2kBEA");
//** If configuration is deployed, livelink it
if (Config.isDeployed)
{
string captureName= "Win2kBEA" + DateTime.Now.ToString();
string url = binding.LiveLink(Config.name);
Console.WriteLine("LiveLink URL="+url);
Console.ReadLine();
}
}
catch (Exception e)
{
Console.WriteLine("Error="+e.Message);
Console.ReadLine();
}
MachinePerformAction
Thismethodperformsoneofthefollowingmachineactionsasindicatedbytheaction
identifier:
1—PowerOn.Turnsonamachine.
2—PowerOff.Turnsoffamachine.Nothingissaved.
3—Suspend.FreezesamachineCPUandstate.
4—Resume.Resumesasuspendedmachine.
5—Reset.Rebootsamachine.
6—Snapshot.Saveamachinestateataspecificpointintime.
7—Revert.Returnsamachinetoasnapshotstate.
8—Shutdown.Shutsdownamachinebeforeturningoff.
Syntax
MachinePerformAction(3);