Sha256: bd349922a0905947c094a7ab202d7fa18b0b0acfd2cedde26c0ef32970c3db01

Contents?: true

Size: 527 Bytes

Versions: 9

Compression:

Stored size: 527 Bytes

Contents

module Fog
  module NewServers
    class Compute
      class Real

        # Reboot a running server
        #
        # ==== Parameters
        # * serverId<~String> - The id of the server to reboot
        #
        def reboot_server(server_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :parser   => Fog::ToHashDocument.new,
            :path     => 'api/rebootServer',
            :query    => {'serverId' => server_id}
          )
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.8.1 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.8.0 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.7.2 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.7.1 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.7.0 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.6.0 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.5.3 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.5.2 lib/fog/compute/requests/new_servers/reboot_server.rb