2.4

Table Of Contents
VMware® Lab Manager SOAP API Guide
42 VMware, Inc.
7—Revert.Returnstheconfigurationtoasnapshotstate.
8—Shutdown.Shutsdownaconfigurationbeforeturningitoff.
Syntax
ConfigurationPerformAction(int configurationID, int action);
Arguments
Response
none
Sample Code: C#
try
{
LabManagerSoap.VMwareLabManagerSOAPinterface binding = new
LabManagerSoap.VMwareLabManagerSOAPinterface();
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
int configurationType = 1; //** Get workspace configuration
//**
//** Get array of all configurations
//**
LabManagerSoap.Configuration [] configurations =
binding.ListConfigurations(configurationType);
//**
//** Loop through all configurations.
//**
for (int j=0; j < configurations.Length; j++)
{
binding.ConfigurationPerformAction(configurations[j].id,4/*Resume*/);
}
Table 4-10. Arguments
Field Data Type Description
configurationID int Configurationidentifier.
action int A ctiontotakeonthe
configuration.