Sha256: 853984046bd3131d9f7effe375de237c8d26a7457ba373dcfbd7bf24fad0e911

Contents?: true

Size: 527 Bytes

Versions: 24

Compression:

Stored size: 527 Bytes

Contents

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

24 entries across 24 versions & 6 rubygems

Version Path
fog-0.10.0 lib/fog/compute/requests/new_servers/reboot_server.rb
fog4encbs-0.9.0.1 lib/fog/compute/requests/new_servers/reboot_server.rb
fog4encbs-0.9.0 lib/fog/compute/requests/new_servers/reboot_server.rb
fog-0.9.0 lib/fog/compute/requests/new_servers/reboot_server.rb