VMware Communities > VMware Developer > Sample Code > Web Services SDK - C# > Documents

PropertyCollector to Retrieve the Properties of a Managed Object

VERSION 3 Published

Created on: May 20, 2009 1:46 PM by navadavuluri - Last Modified:  Sep 10, 2009 8:54 AM by navadavuluri


* This class demonstrates how to use the PropertyCollector to retrieve the properties of a managed object
*
* Usage: GetProperties.exe <[vminfo | hostvminfo | vmmor vmname]>
*
* host - URL of the Virtual Center Server / ESX host
* https:///sdk
* username - User name
* password - Password
* vminfo - To retrieve the VM info, its name and power state
* hostvminfo - To retrieve the names of the VMs and hosts
* vmmor - To retrieve the MOREF of the VM
* vmname - Name of the VM for which MOREF needs to be retrieved
*

Average User Rating
(0 ratings)




Jul 15, 2009 6:13 PM Leafy  says:

This sample is missing code.
See "public static TraversalSpec getVMTraversalSpec()"

Jul 15, 2009 6:15 PM navadavuluri  VMware  says: in response to: Leafy

Corrected!, Thanks

http://communities.vmware.com/community/developer/codecentral