Sha256: a3d4c80f5a84e1f841486337a0b24529097dfbb946f4ca7ac2c3e2cc85b13676

Contents?: true

Size: 869 Bytes

Versions: 2

Compression:

Stored size: 869 Bytes

Contents

module Fog
  module VcloudDirector
    class Compute
      class Real
        # Retrieve a screen ticket that you can use with the VMRC browser
        # plug-in to gain access to the console of a running VM.
        #
        # @param [String] id Object identifier of the VM.
        # @return [Excon::Response]
        #   * body<~Hash>:
        #
        # @raise [Fog::VcloudDirector::Compute::Conflict]
        #
        # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/POST-AcquireTicket.html
        # @since vCloud API version 0.9
        def post_acquire_ticket(id)
          request(
            :expects => 200,
            :method  => 'POST',
            :parser  => Fog::ToHashDocument.new,
            :path    => "vApp/#{id}/screen/action/acquireTicket"
          )
        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/post_acquire_ticket.rb
fog-vcloud-director-0.3.0 lib/fog/vcloud_director/requests/compute/post_acquire_ticket.rb