Sample Exchange

 View Only


Jun 27, 2016 08:52 PM


This sample illustrates the property collector features added in version 4.1

url            [required] : url of the web service.");
username       [required] : username for the authentication");
password       [required] : password for the authentication");
extension      [required] : Extension to be demonstrated [retrieveproperties |
updates | filterspec | propertycollector]
vmname         [optional] : Name of the virtual machine
maxobjects     [optional] : The maximum number of ObjectContent data objects
that should be returned in a single result
updatetype     [optional] : waitforupdates | checkforupdates| extension
nooftasks      [optional] : Number of tasks to be created

Command Line:
Retrieve Properties Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension retrieveproperties
--maxobjects  [maxobjects]

Updates Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension updates
--vmname [vm name] --updatetype  [waitforupdates | checkforupdates| extension]

Filter Spec Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension filterspec
--vmname [vm name] --noofTasks  [Number of tasks to be created]

Property Collector Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension propertycollector

VMware vSphere Web Services Java Samples

This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form. In order to encourage growth of community around VMware samples, these samples are being re-released under a commercially friendly open source license (BSD 3-Clause). See the file header for details.

The samples themselves are identical to the official release version with the exception of a changed copyright and license header on each file.

If you wish to run this sample, please download the official SDK from and follow the provided instructions.

These samples are provided for reference with no warranty expressed or implied.

0 Favorited
1 Files
java file   36 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.