3.0

Table Of Contents
Lab Manager SOAP API Guide
58 VMware, Inc.
{
//**
//** Get array of all machines in configurations
//**
LabManagerSoap.Machine [] machines =
binding.ListMachines(configurations[j].id);
//**
//** Loop through all machines
//**
for (int i=0; i < machines.Length; i++)
{
//**
//** Check status—if machine is suspended, then resume it
//**
if (machines[i].status == 3)
{
binding.MachinePerformAction(machines[i].id, 4);
}
}
}
}
catch (Exception e)
{
Console.WriteLine("Error: " + e.Message);
Console.ReadLine();
}