To register your plug-in package as an extension with vCenter Server, you must create an Extension data object and register this data object with the vCenter Server ExtensionManager. See “Creating the vCenter Server Extension Data Object” for information on the XML properties.You can create and register an Extension data object in the following ways:
■ Use a utility application or script to create the Extension data object programatically, and register that data object using the vSphere API. You can use the ExtensionManager.registerExtension() method to register the data object.
1 Create the vim.Extension data object in an XML file, and place that file in a file system available to the vSphere Client.
3 From the Plug-ins menu select Manage Plug-ins.
5
6 Click Register Plug-in.Regardless of the registration method you choose, you must set the properties of the Extension data object as follows:
■ key. The plug-in package id, defined in your plug-in package’s manifest, plugin-package.xml.
■ client. This property must contain one ExtensionClientInfo data object, with the following properties:
■ type. Must be set to vsphere-client-serenity.
■ url. The location of the plugin-package folder, which must be a .zip file. The ZIP archive root folder must contain the plugin-package.xml package manifest.
■ server. (conditional) If the URL uses HTTPS, you must define a <server> property in your extension data object. The <server> property must contain the SSL thumbprint for the server where your plug-in package ZIP file is stored. For information about the <server> property, see Using a Secure URL for the Plug-in Location.
■ version. The dot-separated version number of the plug-in package, defined in plugin-package.xml.Example: Example vim.Extension XML Definition shows an example Extension object defined in an XML file.Example: Example vim.Extension XML DefinitionA best practice is to use a secure URL (HTTPS) for your plug-in package .zip file location. If you use an HTTPS URL, you must include a <server> property in your vim.Extension data object. The <server> property contains the SHA1 thumbprint for the server that corresponds to the URL. Example 12-3, on page 112, shows an example server property.You can unregister a plug-in package that you previously registered with vCenter Server. You can unregister the plug-in package programatically, using the vSphere API ExtensionManager method unregisterExtension(), or you can use the vCenter Managed Object Browser (MOB) interface in your Web browser to manually delete the extension.