Sha256: 96f2a067f669390369b54203d78d276030335c9dc66276db5afb39295692c08c

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

module Fog
  module VcloudDirector
    class Compute
      class Real
        # Retrieves a thumbnail image of a VM console.
        #
        # The content type of the response can be any of `image/png`,
        # `image/gif`.
        #
        # @param [String] id Object identifier of the VM.
        # @return [Excon::Response]
        #   * body<~String> - the thumbnail image.
        #
        # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/GET-Thumbnail.html
        # @since vCloud API version 0.9
        def get_thumbnail(id)
          request(
            :expects    => 200,
            :headers    => {'Accept' => "image/*;version=#{@api_version}"},
            :idempotent => true,
            :method     => 'GET',
            :path       => "vApp/#{id}/screen"
          )
        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_thumbnail.rb
fog-vcloud-director-0.3.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb