Sha256: b775f92223b461e754a8b63a9c8dbfb3707361c218ab0d1da34814f98c345f04

Contents?: true

Size: 880 Bytes

Versions: 96

Compression:

Stored size: 880 Bytes

Contents

module Fog
  module Compute
    class VcloudDirector
      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

96 entries across 94 versions & 8 rubygems

Version Path
fog-2.3.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-ifeel-2.2.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-2.2.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-2.1.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.42.1 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.2.2 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.2.1 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.2.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.10 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.9 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-2.0.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.42.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.41.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.40.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.39.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.8 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.7 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb