You describe each of the relations for the vSphere object using RelationSpec objects, which you must create inside the <relationSpecs> property of the ObjectRelationSetSpec extension object. Each RelationSpec object contains information on the relation target object type, display properties such as icons and labels, and any relevant list extensions for the relation target object.RelationSpec Extension Object Properties lists the properties you set for each RelationSpec object.
A unique identifier for the relation. The best practice for creating an ID value for a relation is to use the format [relation target object]For[relation object]. For example, if the parent ObjectRelationSetSpec object defines the relations for Chassis objects, you might use the value hostForChassis as the ID for the RelationSpec object that describes the relation to Host objects. The icon resource for the relation. This icon appears in the Related Objects data view and in the Object Navigator. You can specify a dynamic resource from your plug-in module for the relation icon. The text label for the relation. This label appears in the Related Objects data view and in the Object Navigator. You can hard-code a string value or include a dynamic resource string from your plug-in module resources file. The extension ID for a list view that can display the relation target object type. For example, a hostForChassis relation can specify the extension ID of a Host list view. The vSphere Web Client uses this list view extension to display the list of related target objects. An additional property on the relation target object that can be used to constrain which related items are displayed in the vSphere Web Client GUI. You specify the name of a boolean property on the target object using this property, and only objects for which the property is true are displayed in the vSphere Web Client GUI. The relation target object type. For example, in the hostForChassis relation, which displays Host objects related to a selected Chassis object, you specify the <targetType> as HostSystem.Example: Example Relation Extension for Chassis Entity presents an example extension definition for a relation extension. In the example, the extension defines relations for the Chassis object type. When the user selects a Chassis object, the vSphere Web Client will provide related items information for the relations defined in the example. In the example, relations are defined for Rack and Host object types.