Sha256: 67534bfc3e8862d98afb38f5ecea2bd18ef3e009e197fc511293f6732e351ecb

Contents?: true

Size: 704 Bytes

Versions: 2

Compression:

Stored size: 704 Bytes

Contents

module Fog
  module VcloudDirector
    class Compute
      class Real
        require 'fog/vcloud_director/parsers/compute/vm'

        # Retrieve a vApp or VM.
        #
        # @note This should probably be deprecated.
        #
        # @param [String] id Object identifier of the vApp or VM.
        # @return [Excon::Response]
        #   * body<~Hash>:
        #
        # @see #get_vapp
        def get_vm(id)
          request(
            :expects    => 200,
            :idempotent => true,
            :method     => 'GET',
            :parser     => Fog::VcloudDirector::Parsers::Compute::Vm.new,
            :path       => "vApp/#{id}"
          )
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-vcloud-director-0.3.1 lib/fog/vcloud_director/requests/compute/get_vm.rb
fog-vcloud-director-0.3.0 lib/fog/vcloud_director/requests/compute/get_vm.rb