def get_vm_info(vmid)
      params = {
        'method' => :get,
        'command' => "/vApp/vm-#{vmid}/virtualHardwareSection"
      }

      response, headers = send_request(params)

      result = {}
      response.css("ovf|Item[vcloud|href]").each do |item|
        item_name = item.attribute('href').text.gsub(/.*\/vApp\/vm\-(\w+(-?))+\/virtualHardwareSection\//, "")
        name = item.css("rasd|ElementName")
        name = name.text unless name.nil?

        description = item.css("rasd|Description")
        description = description.text unless description.nil?

        result[item_name] = {
          :name => name,
          :description => description
        }
      end

      result
    end
def get_vm_info(vmid)
      params = {
        'method' => :get,
        'command' => "/vApp/vm-#{vmid}/virtualHardwareSection"
      }

      response, headers = send_request(params)

      result = {}
      response.css("ovf|Item[vcloud|href]").each do |item|
        item_name = item.attribute('href').text.gsub(/.*\/vApp\/vm\-(\w+(-?))+\/virtualHardwareSection\//, "")
        name = item.css("rasd|ElementName")
        name = name.text unless name.nil?

        description = item.css("rasd|Description")
        description = description.text unless description.nil?

        result[item_name] = {
          :name => name,
          :description => description
        }
      end

      result
    end
Retrieve information (i.e., memory and CPUs)