<?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: Re:Unable to get serverGuid in vsphere-ui plugin 6.7 in vSphere Client SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/2968198#M6173</link>
    <description>&lt;P&gt;Hi kumargandhi&lt;/P&gt;&lt;P&gt;With the new forwarding feature implemented in the SDK you do not even need the correct API endpoint in the UI.&lt;BR /&gt;All you need is the target VC for which the call is intended.&lt;/P&gt;&lt;P&gt;The clone-ticket can be send to any VC in the linked environment, and it will be forwarded to the VC from which vSphere Client the plugin is used. (this feature works for VCs &amp;gt;= 7.0u2 version)&lt;BR /&gt;More information on this can be found in the vsphere client docs:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://vdc-download.vmware.com/vmwb-repository/dcr-public/009a36e4-2f17-46fc-ac27-ea9f8bf8c923/9988800b-a054-42d0-ae61-18f0ceafff24/vSphereClientSDK-801.pdf" target="_blank"&gt;https://vdc-download.vmware.com/vmwb-repository/dcr-public/009a36e4-2f17-46fc-ac27-ea9f8bf8c923/9988800b-a054-42d0-ae61-18f0ceafff24/vSphereClientSDK-801.pdf&lt;/A&gt;&lt;BR /&gt;Section:&amp;nbsp;How to Delegate Session Authority to the Plug-in Server&lt;/P&gt;&lt;P&gt;If your plugin is to work after 7.0u2 you can take advantage of this new feature. Otherwise before 7.0u2 the plugin needs to trust all vCenters in the linked environment and use the getApiEndpoint.&lt;/P&gt;&lt;P&gt;The getApiEndpoint is not dependent on the linked environment, basically the guid is the one which determines for which VC the vsphere client will clone the session. This means that the api-endpoint is the same no matter for which VC you need a cloned ticket.&lt;/P&gt;&lt;P&gt;Again it is best to use the new functionality which eliminates the need for the getApiEndpoint API call.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 10:03:29 GMT</pubDate>
    <dc:creator>stoevm</dc:creator>
    <dc:date>2023-05-12T10:03:29Z</dc:date>
    <item>
      <title>Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415353#M2833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have plugin deployed on vsphere 6.7 on both Flex and HTML version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plugin is developed using html-client sdk . Now post-deployment vsphere-client[Flex] web-platform.js gives proper serverGuid but same fails on html client i.e vsphere-ui.&lt;/P&gt;&lt;P&gt;Flex client return proper serverGuid = xxxx xxx xxx xxx&lt;/P&gt;&lt;P&gt;whereas in html client we are getting &lt;SPAN style="color: rgba(77, 76, 76, 0.9); font-family: 'Courier New'; font-size: small;"&gt;serverGuid as null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ Get the info provided in a global view using a vCenter selector&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WEB_PLATFORM.getVcSelectorInfo = function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var info = {serviceGuid: getURLParameter("serviceGuid"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sessionId: getURLParameter("sessionId"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serviceUrl: getURLParameter("serviceUrl")};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return info;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:05:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415353#M2833</guid>
      <dc:creator>vaibhav87</dc:creator>
      <dc:date>2018-07-06T09:05:51Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415354#M2834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;The vCenter selector has been deprecated since 6.5U1.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;We have provided an example in the globalview sample in 6.5U1 SDK, where you can use WEB_PLATFORM.getUserSession() to retrieve the server infos. You can then get the serviceGuid.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Have in mind that the getUserSession() API (part of the old bridge APIs) is also deprecated and the recommended approach is to get the user session in your java code and pass it to the UI.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 05:46:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415354#M2834</guid>
      <dc:creator>Denis_Chorbadzh</dc:creator>
      <dc:date>2018-07-10T05:46:39Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415355#M2835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denis thanks for the response.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp; WEB-PLATFROM.getUserSession() will return all the available sever info but not the selected one and as we have used serverSelector using extension we need &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;selected server details.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;While debugging we found that location.href injected by vmware parent on page in FLEX + 6.5 HTML and vSphere 6.7 html is different&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In Flex client all version + HTML 6.5 client it provides all the details in &lt;STRONG&gt;location.href &lt;/STRONG&gt;where as in 6.7 html these details are missing.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Attaching screenshot for the same.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 1. Do we need to modify anyting to make it compatible with vSphere 6.7 HTML Client ?&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 2. Are there any other options available to fetch selected serverInfo using JAVA or JAVASCRIPT API ?&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 17:01:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415355#M2835</guid>
      <dc:creator>vaibhav87</dc:creator>
      <dc:date>2018-07-12T17:01:09Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415356#M2836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;The serviceGuid and other parameters are removed from the URL because of security issues.&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Currently, you have two options to get the serverGuid:&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;1. Using the deprecated WEB_PLATFORM.getUserSession() -&amp;gt; please look at the "globalview sample" from 6.5U1 SDK&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;2. Using getUserSession() JAVA API in your backend code -&amp;gt; look at the service part of "html sample" from 6.7 SDK&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 06:37:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415356#M2836</guid>
      <dc:creator>Denis_Chorbadzh</dc:creator>
      <dc:date>2018-07-13T06:37:52Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415357#M2837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CITE&gt;Hi Denis, Thanks for the response, &lt;/CITE&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;CITE&gt;we are using WEB-PLATFROM.getUserSession() in 6.7 SDK, It returns all the available sever info where we find the parameters like (serviceGuid,sessionId,serviceUrl,locale) but we are unable to get(objectId, actionUid, targets)which are not in userSession.&lt;/CITE&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;CITE&gt;As you specify in previous comment, we saw at the "globalview sample" from 6.5U1 SDK but unabe to understand how to get(objectId, actionUid, targets) these parameters.&lt;/CITE&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;&lt;CITE&gt;Is there any way to get(objectId, actionUid, targets) these parameters specifically with&amp;nbsp;6.7 SDK?&lt;/CITE&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;CITE&gt;Please see the code snipplet in web-platform.js for reference. where we are able to get (serviceGuid,sessionId,serviceUrl,locale) with WEB-PLATFROM.getUserSession() but unable to proceed for (objectId, actionUid, targets)&lt;/CITE&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;&lt;SPAN&gt;// Get a parameter value from the current document URL&lt;/SPAN&gt;&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;function getURLParameter(name) {&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;return (new RegExp('[?|&amp;amp;]' + name + '=' + '([^&amp;amp;;]+?)(&amp;amp;|#|;|$)').exec(location.href) || [,""])[1].replace(/\+/g, '%20') || null;&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;// Get the current context object id or return null if none is defined&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;WEB_PLATFORM.getObjectId = function() {&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;return getURLParameter("&lt;SPAN style="color:#FF0000;"&gt;objectId&lt;/SPAN&gt;");&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;// Get the current action Uid or return null if none is defined&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;WEB_PLATFORM.getActionUid = function() {&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;return getURLParameter("&lt;SPAN style="color:#FF0000;"&gt;actionUid&lt;/SPAN&gt;");&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;// Get the comma-separated list of object ids for an action, or null for a global action&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;WEB_PLATFORM.getActionTargets = function() {&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;return getURLParameter("&lt;SPAN style="color:#FF0000;"&gt;targets&lt;/SPAN&gt;");&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;// Get the current locale&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;WEB_PLATFORM.getLocale = function() {&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM style="color: #008000;"&gt;return WEB_PLATFORM.getUserSession().locale;&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;// Get the info provided in a global view using a vCenter selector&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size:12px;"&gt;&lt;CODE&gt;&lt;EM&gt;WEB_PLATFORM.getVcSelectorInfo = function() {&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM style="color: #008000;"&gt;var server = WEB_PLATFORM.getUserSession().serversInfo;&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN style="color:#008000;"&gt;&lt;EM&gt;var info = { serviceGuid: server[0].serviceGuid;,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN style="color:#008000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sessionId: server[0].serviceGuid;,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN style="color:#008000;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serviceUrl: server[0].serviceGuid;};&lt;/EM&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;return info;&lt;/EM&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 09:10:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415357#M2837</guid>
      <dc:creator>sagarsavairam</dc:creator>
      <dc:date>2018-07-19T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415358#M2838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Yes, you can use the new JS APIs to get the objectId and targets.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The API is called getContextObjects() and it returns a list of objects related to the current context. If you are in an action dialog, the API will return the action targets. If you are in a monitor view (for example), the API will return the context object.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Denis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 11:05:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/1415358#M2838</guid>
      <dc:creator>Denis_Chorbadzh</dc:creator>
      <dc:date>2018-07-19T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/2967959#M6172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/3019892"&gt;@Denis_Chorbadzh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the Java code for getUserSession()...In general what it does is read the values defined in the Configuration class, like, there are few constants defined in the class, and Java backend just sets and gets these values?, looks like they are hardcoded or reading from env fields? (Not entirely sure, I am not a Java dev)&lt;/P&gt;&lt;P&gt;But, the&amp;nbsp;getUserSession() API from the Html bridge JavaScript actually gives the serversInfo and linkedServersInfo dynamically. PFB screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WEB_PLATFORM_getUserSession.png" style="width: 999px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/101437i02725B4374AD1595/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="WEB_PLATFORM_getUserSession.png" alt="WEB_PLATFORM_getUserSession.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's sad that htmlClientSdk (JavaScript APIs) doesn't have such API!!.&lt;/P&gt;&lt;P&gt;We have a linked vCenters setup and we are having trouble fetching the right api-endpoint that we need to set in the headers for our API calls.&lt;/P&gt;&lt;P&gt;PFB screenshot of out current setup. We have two plugin instances, each with its own vCenter.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linked_vCenters_New.png" style="width: 999px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/101439iBFCD1383673523C6/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Linked_vCenters_New.png" alt="Linked_vCenters_New.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now the problem is getting the right api-endpoint for the selected plugin instance.&lt;/P&gt;&lt;P&gt;PFB code for the three headers we set in the remote-vcp UI code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// Below are the headers we set for UI API calls.
getHttpClientHeaders(): any {
      return {
         "vcenter-guid": this.getGUID(),
         "vmware-api-ui-endpoint-url": this.getUIApiEndpointUrl(),
         "vmware-api-session-id": this.getVMwareAPISessionId()
      };
   }

// Below fetching the API end point, but what about for linked setup!!
getUIApiEndpointUrl() {
   return this.gs.getClientSdk().app.getApiEndpoints().uiApiEndpoint.fullUrl;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide some feedback? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 09:46:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/2967959#M6172</guid>
      <dc:creator>kumargandhi16</dc:creator>
      <dc:date>2023-05-11T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/2968198#M6173</link>
      <description>&lt;P&gt;Hi kumargandhi&lt;/P&gt;&lt;P&gt;With the new forwarding feature implemented in the SDK you do not even need the correct API endpoint in the UI.&lt;BR /&gt;All you need is the target VC for which the call is intended.&lt;/P&gt;&lt;P&gt;The clone-ticket can be send to any VC in the linked environment, and it will be forwarded to the VC from which vSphere Client the plugin is used. (this feature works for VCs &amp;gt;= 7.0u2 version)&lt;BR /&gt;More information on this can be found in the vsphere client docs:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://vdc-download.vmware.com/vmwb-repository/dcr-public/009a36e4-2f17-46fc-ac27-ea9f8bf8c923/9988800b-a054-42d0-ae61-18f0ceafff24/vSphereClientSDK-801.pdf" target="_blank"&gt;https://vdc-download.vmware.com/vmwb-repository/dcr-public/009a36e4-2f17-46fc-ac27-ea9f8bf8c923/9988800b-a054-42d0-ae61-18f0ceafff24/vSphereClientSDK-801.pdf&lt;/A&gt;&lt;BR /&gt;Section:&amp;nbsp;How to Delegate Session Authority to the Plug-in Server&lt;/P&gt;&lt;P&gt;If your plugin is to work after 7.0u2 you can take advantage of this new feature. Otherwise before 7.0u2 the plugin needs to trust all vCenters in the linked environment and use the getApiEndpoint.&lt;/P&gt;&lt;P&gt;The getApiEndpoint is not dependent on the linked environment, basically the guid is the one which determines for which VC the vsphere client will clone the session. This means that the api-endpoint is the same no matter for which VC you need a cloned ticket.&lt;/P&gt;&lt;P&gt;Again it is best to use the new functionality which eliminates the need for the getApiEndpoint API call.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 10:03:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/2968198#M6173</guid>
      <dc:creator>stoevm</dc:creator>
      <dc:date>2023-05-12T10:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Unable to get serverGuid in vsphere-ui plugin 6.7</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/2968630#M6174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/3218856"&gt;@stoevm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for checking this issue and replying&lt;/P&gt;&lt;P&gt;I will go through shared docs and come back.&lt;/P&gt;&lt;P&gt;**We are giving support for remote-vcp from vCenter version 8.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 07:18:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-get-serverGuid-in-vsphere-ui-plugin-6-7/m-p/2968630#M6174</guid>
      <dc:creator>kumargandhi16</dc:creator>
      <dc:date>2023-05-16T07:18:16Z</dc:date>
    </item>
  </channel>
</rss>

