<?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: list of VM's in a resource pool in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/list-of-VM-s-in-a-resource-pool/m-p/1797868#M14873</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;&amp;nbsp; Thank you for the help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;var vms = rpool.vm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;The above helps in retrieving the list of VM in the resource pool. But this parameter is not listing the VM's under the nested repool or the VM's in the vApp.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have resource pool which contains only one vApp, the vApp contains two VM's. the rpool.vm is not able to display the vm's information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 23:31:45 GMT</pubDate>
    <dc:creator>tivs</dc:creator>
    <dc:date>2014-01-10T23:31:45Z</dc:date>
    <item>
      <title>list of VM's in a resource pool</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/list-of-VM-s-in-a-resource-pool/m-p/1797866#M14871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to display the list of VM's in a resource pool. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input variables:-&lt;/P&gt;&lt;P&gt;&amp;nbsp; localparameter:- rpool&lt;/P&gt;&lt;P&gt;&amp;nbsp; Type:- VC:ResourcePool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (rpool.name == "ABC"){&lt;/P&gt;&lt;P&gt;var vms = VcPlugin.getAllVirtualMachines();&lt;/P&gt;&lt;P&gt;for(i in vms){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var vm = vms[i];&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; System.log("VM name : " + vm.name&amp;nbsp; );&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; logtext = "VM name : " + vm.name&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But the script is displaying&amp;nbsp; list of VM's in the vCenter but i need only VM's listed in the ABC resource pool. Please correct me, if i am wrong. Thank you in advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 21:08:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/list-of-VM-s-in-a-resource-pool/m-p/1797866#M14871</guid>
      <dc:creator>tivs</dc:creator>
      <dc:date>2014-01-10T21:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: list of VM's in a resource pool</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/list-of-VM-s-in-a-resource-pool/m-p/1797867#M14872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getAllVirtualMachines get all vCenters VM. This is expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get vms from a resourcepool just use var vms = rpool.vm;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 21:43:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/list-of-VM-s-in-a-resource-pool/m-p/1797867#M14872</guid>
      <dc:creator>cdecanini_</dc:creator>
      <dc:date>2014-01-10T21:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: list of VM's in a resource pool</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/list-of-VM-s-in-a-resource-pool/m-p/1797868#M14873</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;&amp;nbsp; Thank you for the help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;var vms = rpool.vm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;The above helps in retrieving the list of VM in the resource pool. But this parameter is not listing the VM's under the nested repool or the VM's in the vApp.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have resource pool which contains only one vApp, the vApp contains two VM's. the rpool.vm is not able to display the vm's information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 23:31:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/list-of-VM-s-in-a-resource-pool/m-p/1797868#M14873</guid>
      <dc:creator>tivs</dc:creator>
      <dc:date>2014-01-10T23:31:45Z</dc:date>
    </item>
  </channel>
</rss>

