<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Defining Event List for Remote Plugin in vSphere Client SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Defining-Event-List-for-Remote-Plugin/m-p/2847637#M5908</link>
    <description>&lt;P&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/5272835"&gt;@MichaelKarpinsk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;The SDK plugin registration tool is just demonstrating how to use the &lt;A href="https://vdc-download.vmware.com/vmwb-repository/dcr-public/b50dcbbf-051d-4204-a3e7-e1b618c1e384/538cf2ec-b34f-4bae-a332-3820ef9e7773/vim.ExtensionManager.html" target="_blank"&gt;ExtensionManager API&lt;/A&gt; of the vCenter Server, not a full-blown tool for production use. It is needed for registering a plugin (hence the support from the Client SDK) but there is nothing plugin-specific so you can use any other tool or custom script to call the API.&lt;/P&gt;&lt;P&gt;That said, we did expect that plugin writers would have different use cases not covered by the tool so it is provided both as a prebuilt version and as a Java project: &lt;STRONG&gt;html-client-sdk\tools\vCenter plugin registration\project&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can add support for events following how it is handled for tasks, e.g. start from duplicating &lt;EM&gt;PluginExtensionRegistryService.updateTaskList&lt;/EM&gt;. Ultimately, the tool sets up an example of how to work with Extensions with localization, error handling, etc. so you can easily code your specific use case or just copy parts of the implementation in your own installer.&lt;/P&gt;&lt;P&gt;If you need further assistance please let us know.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vladi&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 07:52:46 GMT</pubDate>
    <dc:creator>_vladi_</dc:creator>
    <dc:date>2021-05-18T07:52:46Z</dc:date>
    <item>
      <title>Defining Event List for Remote Plugin</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Defining-Event-List-for-Remote-Plugin/m-p/2845567#M5907</link>
      <description>&lt;P&gt;I am developing a vCenter remote plugin and would like to create some custom event types for my extension that could be displayed in the vSphere Client "Events" view. Is there a way to define a list of custom event IDs for a vCenter remote plugin at the time of plugin registration?&lt;/P&gt;&lt;P&gt;Additional context:&lt;/P&gt;&lt;P&gt;In the MOB interface for vCenter, each Extension within the ExtensionManger contains the following lists:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;eventList&lt;/LI&gt;&lt;LI&gt;taskList&lt;/LI&gt;&lt;LI&gt;faultList&lt;/LI&gt;&lt;LI&gt;privilegeList&lt;/LI&gt;&lt;LI&gt;resourceList&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;According to the readme for the registration script in the vSphere Client SDK, there are options for populating all of the above lists except for eventList:&amp;nbsp;&lt;FONT color="#808080"&gt;(reference: html-client-sdk\samples\remote-plugin-sample\registration\readme.txt)&lt;/FONT&gt;:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#666699"&gt;The taskList.json contains task IDs and can be passed to the vCenter plugin registration tool with the --taskList argument&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;The faultList.json contains fault IDs and can be passed to the vCenter plugin registration tool with the --faultList argument&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;The privilegeList.json contains privilege IDs and can be passed to the vCenter plugin registration tool with the --privilegeList argument&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#666699"&gt;The resourceList.json contains localization information and can be passed to the vCenter plugin registration tool with the --resourceList argument&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So I was hoping for something where I could include an &lt;STRONG&gt;eventList.json&lt;/STRONG&gt; file using an&amp;nbsp;&lt;STRONG&gt;--eventList&lt;/STRONG&gt; argument in the vCenter plugin registration tool, but that does not seem to be an option. Is there a recommended way for defining a set of custom events for a remote plugin?&lt;/P&gt;&lt;P&gt;I appreciate any guidance you can provide.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:21:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Defining-Event-List-for-Remote-Plugin/m-p/2845567#M5907</guid>
      <dc:creator>MichaelKarpinsk</dc:creator>
      <dc:date>2021-05-05T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Defining Event List for Remote Plugin</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Defining-Event-List-for-Remote-Plugin/m-p/2847637#M5908</link>
      <description>&lt;P&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/5272835"&gt;@MichaelKarpinsk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;The SDK plugin registration tool is just demonstrating how to use the &lt;A href="https://vdc-download.vmware.com/vmwb-repository/dcr-public/b50dcbbf-051d-4204-a3e7-e1b618c1e384/538cf2ec-b34f-4bae-a332-3820ef9e7773/vim.ExtensionManager.html" target="_blank"&gt;ExtensionManager API&lt;/A&gt; of the vCenter Server, not a full-blown tool for production use. It is needed for registering a plugin (hence the support from the Client SDK) but there is nothing plugin-specific so you can use any other tool or custom script to call the API.&lt;/P&gt;&lt;P&gt;That said, we did expect that plugin writers would have different use cases not covered by the tool so it is provided both as a prebuilt version and as a Java project: &lt;STRONG&gt;html-client-sdk\tools\vCenter plugin registration\project&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can add support for events following how it is handled for tasks, e.g. start from duplicating &lt;EM&gt;PluginExtensionRegistryService.updateTaskList&lt;/EM&gt;. Ultimately, the tool sets up an example of how to work with Extensions with localization, error handling, etc. so you can easily code your specific use case or just copy parts of the implementation in your own installer.&lt;/P&gt;&lt;P&gt;If you need further assistance please let us know.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vladi&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 07:52:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Defining-Event-List-for-Remote-Plugin/m-p/2847637#M5908</guid>
      <dc:creator>_vladi_</dc:creator>
      <dc:date>2021-05-18T07:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Defining Event List for Remote Plugin</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Defining-Event-List-for-Remote-Plugin/m-p/2847688#M5909</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/2599678"&gt;@_vladi_&lt;/a&gt;, appreciate the information! Glad to hear it is possible to do what we were hoping. I will use the example you mentioned as a reference for implementing this in our plugin. &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@251BE23E36546A0F934A50408D06C502/emoticons/1f60a.png" alt=":smiling_face_with_smiling_eyes:" title=":smiling_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 14:49:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Defining-Event-List-for-Remote-Plugin/m-p/2847688#M5909</guid>
      <dc:creator>MichaelKarpinsk</dc:creator>
      <dc:date>2021-05-18T14:49:05Z</dc:date>
    </item>
  </channel>
</rss>

