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
52 VMware, Inc.
ListConfigurations
ThismethodreturnsanarrayoftypeConfiguration.Dependingonconfigurationtype
requested,oneobjectisreturnedforeachconfigurationintheconfigurationlibraryor
eachconfigurationintheWorkspace.
Syntax
Configuration [] config = ListConfigurations(1);
Arguments
Response
Sample Code: C#
try
{
//**
//** LabManagerSoap is the name of the Web reference in Visual Studio.
//**
LabManagerSoap.VMwareLabManagerSOAPinterface binding = new
LabManagerSoap.VMwareLabManagerSOAPinterface();
//** Create login
binding.AuthenticationHeaderValue = new
LabManagerSoap.AuthenticationHeader();
binding.AuthenticationHeaderValue.username = "jaya";
binding.AuthenticationHeaderValue.password = "Lab Manager";
ServicePointManager.CertificatePolicy = new CertificateAccepter();
//** Get Configurations in Workspace.
int configurationType = 1; //** 1=Workspace
LabManagerSoap.Configuration [] WSconfigurations =
binding.ListConfigurations(configurationType);
//** Write to the console all configurations
Table 4-23. Arguments
Field Data Type Description
configurationType int 1=Workspaceconfigurations,2=Libraryconfigurations.
Table 4-24. Response
Field Data Type Description
configurations[] ConfigurationArray ArrayofConfigurationobjects.