<?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: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket in vSphere Client SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2926638#M6101</link>
    <description>&lt;P&gt;Thanks for this. It was the issue in my API call. I had used vc&lt;STRONG&gt;-&lt;/STRONG&gt;guid [hyphen] instead of vc&lt;STRONG&gt;_&lt;/STRONG&gt;guid [underscore]&lt;/P&gt;&lt;P&gt;Do you know if we can fetch the vc_guid in the global plugin page using htmlclientsdk? [see attached image]&lt;/P&gt;&lt;P&gt;I know that on object page we get the vc_guid from URL like "VirtualMachine:vm-15:&lt;STRONG&gt;f17d2a70-9cfa-49ee-b5ec-2bd080beb123&lt;/STRONG&gt;/summary". But, I want to fetch vc_guid from global plugin page.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 10:54:57 GMT</pubDate>
    <dc:creator>vedaniks</dc:creator>
    <dc:date>2022-08-31T10:54:57Z</dc:date>
    <item>
      <title>Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2894219#M6011</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am following &lt;A href="https://developer.vmware.com/docs/14560/developing-remote-plug-ins-with-the-vsphere-client-sdk--7-0-update-3-/GUID-ED253BD0-E9B1-4588-958D-577A667F5AD9.html" target="_blank"&gt;this&lt;/A&gt; guide to delegate session authority to the plug-in server.&lt;/P&gt;&lt;P&gt;On the plug-in UI, I got the &lt;FONT face="comic sans ms,sans-serif"&gt;sessionToken&lt;/FONT&gt; using&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="comic sans ms,sans-serif"&gt;app.getSessioninfo()&lt;/FONT&gt; method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I try to get the &lt;FONT face="comic sans ms,sans-serif"&gt;session_clone_ticket&lt;/FONT&gt; using REST API endpoint&amp;nbsp;&lt;FONT face="comic sans ms,sans-serif"&gt;/api/ui/vcenter/session/clone-ticket&lt;/FONT&gt;, I get the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;[401] Something went wrong. Check the server logs for more information&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Which logs should I check? Can someone please help me debug why I am getting this error.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;My POST request looks like this:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n    \"vc-guid\": \"223b94f2-af15-4613-5d1a-a278b19abc09\"\r\n}");
Request request = new Request.Builder()
  .url("https://vc-fqdn/api/ui/vcenter/session/clone-ticket")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .addHeader("Accept", "application/json")
  .addHeader("vmware-api-session-id", "\"vmw-sid:[issuer:e7b5f32e-3b70-4668-9b52-b3bd17075008,version:2,value:bdMkwgnaXutxYpTWdvYdV1SJuXxVF8AFiOJh+v/E2/s=]\"")
  .build();
Response response = client.newCall(request).execute();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; I have also tried using only&amp;nbsp;value from sessionToken &lt;FONT face="comic sans ms,sans-serif"&gt;bdMkwgnaXutxYpTWdvYdV1SJuXxVF8AFiOJh+v/E2/s=&lt;/FONT&gt; as &lt;FONT face="comic sans ms,sans-serif"&gt;vmware-api-session-id&lt;/FONT&gt;, but still got the same error.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:19:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2894219#M6011</guid>
      <dc:creator>vedaniks</dc:creator>
      <dc:date>2022-02-18T06:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2895736#M6015</link>
      <description>&lt;P&gt;Hi vedaniks&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole result returned from the getSessionInfo should be used as shown in the code snippet.&lt;/P&gt;&lt;P&gt;Logs should be available in the /storage/log/vmware/vsphere-ui/logs/vsphere_client_virgo.log.&lt;/P&gt;&lt;P&gt;Please locate the error log why 401 is thrown and post it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Martin&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 10:15:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2895736#M6015</guid>
      <dc:creator>stoevm</dc:creator>
      <dc:date>2022-02-28T10:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2910549#M6054</link>
      <description>&lt;P&gt;The call worked. I think you missed the body in your POST call.&lt;/P&gt;&lt;P&gt;Include the following body&lt;/P&gt;&lt;PRE&gt;{"vc_guid": "223b94f2-af15-4613-5d1a-a278b19abc09"}&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 May 2022 08:13:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2910549#M6054</guid>
      <dc:creator>harsha219</dc:creator>
      <dc:date>2022-05-23T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2926638#M6101</link>
      <description>&lt;P&gt;Thanks for this. It was the issue in my API call. I had used vc&lt;STRONG&gt;-&lt;/STRONG&gt;guid [hyphen] instead of vc&lt;STRONG&gt;_&lt;/STRONG&gt;guid [underscore]&lt;/P&gt;&lt;P&gt;Do you know if we can fetch the vc_guid in the global plugin page using htmlclientsdk? [see attached image]&lt;/P&gt;&lt;P&gt;I know that on object page we get the vc_guid from URL like "VirtualMachine:vm-15:&lt;STRONG&gt;f17d2a70-9cfa-49ee-b5ec-2bd080beb123&lt;/STRONG&gt;/summary". But, I want to fetch vc_guid from global plugin page.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 10:54:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2926638#M6101</guid>
      <dc:creator>vedaniks</dc:creator>
      <dc:date>2022-08-31T10:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2926646#M6102</link>
      <description>&lt;P&gt;Hi vedaniks,&lt;/P&gt;&lt;P&gt;On a global view you can not fetch the vc_guid, because there are corner cases where this results in an undefined behavior.&amp;nbsp;For example one remote plugin instance registered on multiple vCenters. At this point there will be multiple guids for that global view.&lt;/P&gt;&lt;P&gt;The idea for remote plugins is to have the guids of the registered vCenters configured during plugin installation, for example in a conf file or through some REST endpoints.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way the plugin will know to which vCenters it is supposed to be talking to and the plugin UI will not be required to retrieve such information. This is the case for global views since there is no object and the plugin ( if it wants to retrieve info from the vCenters) can do it through the configured vCenter guids (thumbprints and so on...) .&lt;/P&gt;&lt;P&gt;For a context object it is important to retrieve the object and the guid since you want(in most cases) to show information relevant only for that vCenter ( and object ).&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 11:33:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2926646#M6102</guid>
      <dc:creator>stoevm</dc:creator>
      <dc:date>2022-08-31T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2950496#M6141</link>
      <description>&lt;P&gt;After obtaining the "session_clone_ticket", I'm trying to clone the ticket using sessionmanager.cloneticket() but it fails throwing "Unauthenticated" error. What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:39:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2950496#M6141</guid>
      <dc:creator>harsha219</dc:creator>
      <dc:date>2023-01-24T16:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2950833#M6142</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/3522815"&gt;@harsha219&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you using the &lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1ef6c336-7bef-477d-b9bb-caa1767d7e30/82521f49-9d9a-42b7-b19b-9e6cd9b30db1/vim.SessionManager.html#cloneSession" target="_blank" rel="noopener"&gt;SessionManager.cloneSession()&lt;/A&gt; API or the &lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1ef6c336-7bef-477d-b9bb-caa1767d7e30/82521f49-9d9a-42b7-b19b-9e6cd9b30db1/vim.SessionManager.html#acquireCloneTicket" target="_blank" rel="noopener"&gt;SessionManager.acquireCloneTicket()&lt;/A&gt; API of the vSphere Management SDK after obtaining the session clone ticket?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Aleksandar&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 08:47:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2950833#M6142</guid>
      <dc:creator>amarinov</dc:creator>
      <dc:date>2023-01-26T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clone ticket using /api/ui/vcenter/session/clone-ticket</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2969836#M6176</link>
      <description>&lt;P&gt;I've tried to use the code as in :&lt;/P&gt;&lt;P&gt;&lt;A href="https://vdc-download.vmware.com/vmwb-repository/dcr-public/1cad846e-1b2f-406f-ba81-34bd77d9bad9/dfb037cd-ff63-4d5e-b432-9a4aa790168f/doc/GUID-ED253BD0-E9B1-4588-958D-577A667F5AD9.html" target="_blank"&gt;https://vdc-download.vmware.com/vmwb-repository/dcr-public/1cad846e-1b2f-406f-ba81-34bd77d9bad9/dfb037cd-ff63-4d5e-b432-9a4aa790168f/doc/GUID-ED253BD0-E9B1-4588-958D-577A667F5AD9.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But client.createStub() , si.RetrieveContent() methods are not detected on the respective classes like for example:&lt;/P&gt;&lt;P&gt;"The method RetrieveContent() is undefined for the type ServiceInstance".&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 13:01:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Unable-to-clone-ticket-using-api-ui-vcenter-session-clone-ticket/m-p/2969836#M6176</guid>
      <dc:creator>harsha219</dc:creator>
      <dc:date>2023-05-23T13:01:45Z</dc:date>
    </item>
  </channel>
</rss>

