title: Get vmId via pyVmomi
body: <p>Currently Im using <code>vim-cmd</code> to perform multiple operations in my VMware center.</p>
  
  <p>I'm using SSH paramiko module to connect and retrieve <code>vim-cmd</code> command status:</p>
  
  <pre><code>vim-cmd vmsvc/getallvms
  vim-cmd vmsvc/power.getstate 13
  vim-cmd vmsvc/power.on 13
  vim-cmd vmsvc/power.off 13
  vim-cmd vmsvc/destroy 13
  </code></pre>
  
  <p>I want to use <code>pyVmomi</code> library to run some commands and for this it is required to provide the <code>vmId</code> identifier:</p>
  
  <pre><code>from pyvim import connect
  from pyVmomi import vim
  from pyVmomi import vmodl
  
  vim-cmd vmsvc/get.summary 13
  Listsummary:
  
  (vim.vm.Summary) {
     dynamicType = &lt;unset&gt;, 
     vm = 'vim.VirtualMachine:13', 
  </code></pre>
  
  <p>What command can I use to get the <code>vmId</code>?</p>