Use SelectionSpec references to avoid writing duplicate TraversalSpec declarations.

The TraversalSpec identified in a SelectionSpec reference must be within the same PropertyFilterSpec. SelectionSpec Reference shows the use of SelectionSpec references to a virtual machine TraversalSpec. The SelectionSpec references are associated with Network and Datastore traversals.

Figure 1. SelectionSpec Reference
Shows the use of Selection Spec to make Traversal Spec queries more precise.

If the ObjectSpec.selectSet array contains a SelectionSpec, the referenced TraversalSpec must identify the same object type. TraversalSpec.type must match the type of the object specified in ObjectSpec.obj. The PropertyCollector applies the TraversalSpec to the object and uses the TraversalSpec.path property to extend its traversal.