■ For each simple property (string, Boolean, numeric data type), including inherited simple properties, the SDK creates an accessor method. The accessor method name is the same as the property name.Because many of the server-side managed objects have a large number of properties, accessing only a small number of objects can potentially result in noticeable performance degradation. You use a properties filter to populate the view object only with properties you are interested in to avoid that problem.The view subroutines—get_view(), get_views(), find_entity_view(), and find_entity_views() —can accept a properties argument that consists of a list of property paths for retrieval from the server. Go to the vSphere Web Services SDK Reference for a list of properties for each server-side managed object. Property paths can be full paths, and can include nested properties. Properties do not have to be top-level managed object properties.
2 Use the view object’s get_property() method. Note that $vm_view is an array reference, not a scalar.
3 get_property() works with fully-populated views as well. The following code fragments uses get_property to retrieve a property from a virtual machine.When you use a filtered view and attempt to read a property that was not retrieved from the server, the result is the same as if the property were unset.When you run a utility application that takes arguments specifying names for virtual machines, host systems, and so on, you must supply the exact name on the command line. Regular expressions are not accepted.
■ In virtual machine names, you must represent the character forward slash (/) as %2f, backward slash (\) as %5c, and percent (%) as %25 when they appear in virtual machine names.
■ On UNIX-like command lines, surround names that contain special characters with single-quotes, and use percent (%) as the escape character.For example, to search for the virtual machine San Jose, run this command:To search for the virtual machine San-Jose/5, run this command: