<?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: What is the &amp;quot;DatacenterName&amp;quot; and &amp;quot;vmPath&amp;quot; in VCenter in vSphere Management SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/2961814#M14774</link>
    <description>&lt;P&gt;The folder names are case-sensitive&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 16:11:37 GMT</pubDate>
    <dc:creator>albecool</dc:creator>
    <dc:date>2023-03-30T16:11:37Z</dc:date>
    <item>
      <title>What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627385#M8648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using VSphere SDK 4. i want to use CloneVM_Task() in VMCLone Class in Sample projects. I am unable to understand two arguments i.e. "DatacenterName" and "vmPath". i have attached the image of my VCenter. can somebody please tell me the values of those two arguments in my attached image context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Rizwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 15:41:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627385#M8648</guid>
      <dc:creator>sahmed24</dc:creator>
      <dc:date>2010-04-08T15:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627386#M8649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rizwan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screenshot shared by you, the datacenter name would be the name of the datacenter in your vCenter Server which would be "CZDC001".&lt;/P&gt;&lt;P&gt;Regarding the vmPath parameter, it is the inventory path to the VM. By default, every datacenter has a vmFolder with name "vm" under which all the virtual machines exists. You can pass this inventory path as  "CZDC001/vm/WinXP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this answers your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Angela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 06:01:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627386#M8649</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2010-04-09T06:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627387#M8650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the datacenter name right, but i cant get vmPath right. i have tried what you mentioned i.e. "CZDC001/vm/WinXP". but this doesnt work, however i can get the refrerence to the machine by using this method FindByDatastorePath( xxx, xxx, "[datastore1] WinXP/WinXP.vmx")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached another image to show my datastores. Can you please help me further in getting "vmPath" right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Rizwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 09:54:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627387#M8650</guid>
      <dc:creator>sahmed24</dc:creator>
      <dc:date>2010-04-09T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627388#M8651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are getting the reference of the VM using findByDatastorePath API, then you can proceed further with the  CloneVM_Task API. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would like to share that the inventory path of the VM can be crosschecked using the findByInventoryPath API. The path would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you can verify your datacenter and vm name using the MOB and verifying the name property of the datacenter and VM, if it is the same. You can directly invoke the findByInventoryPath API using MOB as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried and I am successfully able to retrieve the VM reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to crosscheck if you are passing the right name, verifying the same using Managed object browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 10:19:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627388#M8651</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2010-04-09T10:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627389#M8652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can go forward using FindByDatastorePath but i think in longer run inventory path will be easy to use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"datacenter/vm/vmname" works for some images and for some it doesnt, strange, i dont know why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:29:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627389#M8652</guid>
      <dc:creator>sahmed24</dc:creator>
      <dc:date>2010-04-09T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627390#M8653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be possible that for some VMs, for which you unable to retrieve the reference, the VM(s) are containing inside another vm folder, which is created inside "vm" vmFolder. You can crosscheck the same using the MOB to verify in which folder the VM exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 03:20:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627390#M8653</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2010-04-12T03:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627391#M8654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks AngelaS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after a bit of browsing in MOB, i found the machine i was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is another way to find the inventory path of the machines. &lt;/P&gt;&lt;P&gt;1. Login to VSphere Client, &lt;/P&gt;&lt;P&gt;2. go to Home&lt;/P&gt;&lt;P&gt;3. go to VMs and Templates&lt;/P&gt;&lt;P&gt;4. browse folder and find the virtual machine, &lt;/P&gt;&lt;P&gt;5. the inventory path would be DataCenter/vm/folder structure inside DataCenter e.g. if the path in the inventory is DataCenter/folder1/folder2/machine, then it the inventory path would be DataCenter/vm/folder1/folder2/machine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:27:05 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/1627391#M8654</guid>
      <dc:creator>sahmed24</dc:creator>
      <dc:date>2010-04-12T10:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: What is the "DatacenterName" and "vmPath" in VCenter</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/2961814#M14774</link>
      <description>&lt;P&gt;The folder names are case-sensitive&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:11:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/What-is-the-quot-DatacenterName-quot-and-quot-vmPath-quot-in/m-p/2961814#M14774</guid>
      <dc:creator>albecool</dc:creator>
      <dc:date>2023-03-30T16:11:37Z</dc:date>
    </item>
  </channel>
</rss>

