If a solution deploys different types of virtual machine or vApp, you can provide a description for each type by setting the ExtManagedEntityInfo description property.

The text that you set in the ExtManagedEntityInfo description property allows you to add a description to the types of virtual machines or vApps that your solution deploys. If a solution deploys different types of virtual machine, you can create several ExtManagedEntityInfo instances, each with a different description.

Prerequisites

Note: The EAM Sample Solution uses ESX Agent Manager to deploy ESX agent virtual machines. ESX Agent Manager sets the ManagedByInfo properties on these virtual machines to mark them as belonging to ESX Agent Manager. The EAM Sample Solution does not set the ManagedByInfo properties itself. The code extracts in this procedure are not taken from the source files of the EAM Sample Solution.

Procedure

  • Call the ExtManagedEntityInfo.setDescription() method to set the ExtManagedEntityInfo description property for a type of virtual machine or vApp that the solution deploys.
    Extension extension = new Extension();
    ExtManagedEntityInfo extManagedEntityInfo = new ExtManagedEntityInfo();
    extManagedEntityInfo.setType("your_vm_type");
    extManagedEntityInfo.setDescription("Description of this type of virtual machine or vApp.");
    extension.getManagedEntityInfo().add(extManagedEntityInfo);

Results

You added a description to all virtual machines or vApps of a certain type that your solution deploys. The description appears in the vSphere Client when the solution registers with vCenter Server.