Sha256: ebc72ef2209e8ee5adc5a1087d043a566191f8a40a045d9573a19c695319db37

Contents?: true

Size: 599 Bytes

Versions: 7

Compression:

Stored size: 599 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Resets the server without disconnecting the console.
        #
        # @param [String] identifier Unique reference to identify the resource
        #
        # @return [Hash] if successful Hash version of JSON object
        #
        # @see https://api.gb1.brightbox.com/1.0/#server_reset_server
        #
        def reset_server(identifier)
          return nil if identifier.nil? || identifier == ""
          wrapped_request("post", "/1.0/servers/#{identifier}/reset", [202])
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-brightbox-0.6.1 lib/fog/brightbox/requests/compute/reset_server.rb
fog-brightbox-0.6.0 lib/fog/brightbox/requests/compute/reset_server.rb
fog-brightbox-0.5.1 lib/fog/brightbox/requests/compute/reset_server.rb
fog-brightbox-0.5.0 lib/fog/brightbox/requests/compute/reset_server.rb
fog-brightbox-0.4.1 lib/fog/brightbox/requests/compute/reset_server.rb
fog-brightbox-0.4.0 lib/fog/brightbox/requests/compute/reset_server.rb
fog-brightbox-0.3.0 lib/fog/brightbox/requests/compute/reset_server.rb