To obtain information about the virtual infrastructure, you retrieve managed object properties. Managed object properties can be simple data types, such as integer or string data, or they can be complex types such as data objects that contain sets of properties.
What to read next
Obtaining Information from a Server With a reference to a managed object, you can obtain information about the state of the server-side inventory objects and populate client-side data objects based on the values. You can use one of the following approaches:
Working with Data Structures Properties contain information about the server-side objects at a given point in time. The value of a property can be of one of the following types:
Accessing Property Values To use the composite data structures and arrays that contain Server data:
Nested Properties and Property Paths in Composite Data Structures vSphere Data objects can include properties that are defined as composite data types, such as data objects. The embedded data objects can also contain properties that are data objects. Properties can nest to several levels.
xsd:anyType Arrays The vSphere Web Services API uses xsd:anyType unconstrained type declarations. A vSphere client must map values of xsd:anyType to explicit data types. An xsd:anyType value can represent a single data value or it can represent an array. The WSDL for the vSphere Web Services API defines array types for all of the data values that a vSphere client can send or receive as arrays. The array types use the prefix “ArrayOf”
. An example of an array type is ArrayOfString for string values.
Indexed Array and Key-Based Array Properties The VMware vSphere data structures include array properties, which can be indexed arrays or key-based arrays.
Unset Optional Properties Many of the Data Objects in the vSphere Web Services SDK have optional properties that may be set by your client application or by a Server process or event. If you retrieve a data object that has an optional property that is unset, the Server will not return a value for the optional property. If you call an accessor function to retrieve the property value, the value returned by the function depends on the programming language that you are using.
Escape Character in Name and Path Properties The percent sign (%) is used as an escape character to embed special characters in strings. For example, %2f (or %2F) is interpreted as the slash (/) character. To include a percent sign as a literal in a string, use %%.The path to the inventory starts from the root folder (ServiceContent.rootFolder property), denoted by the slash character.