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-vcloud-director-0.1.6 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.5 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.4 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.3 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.2 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.1 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-vcloud-director-0.1.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.38.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.37.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.36.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.35.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-2.0.0.pre.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.34.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.33.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.32.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.31.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.30.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb
fog-1.29.0 lib/fog/vcloud_director/requests/compute/get_thumbnail.rb