Sha256: 27548f11f964bfdcaf4b99a0d37f012a20de35f47b81151784a7689215b6441f

Contents?: true

Size: 697 Bytes

Versions: 29

Compression:

Stored size: 697 Bytes

Contents

module Fog
  module Compute
    class Rackspace
      class Real

        # Reboot an existing server
        #
        # ==== Parameters
        # * server_id<~Integer> - Id of server to reboot
        # * body<~String> - Body of the request, describes the action (see reboot_server as an example)
        # * expect<~Integer> - expected return, 202 except for confirm resize (204)
        #
        def server_action(server_id, body, expects=202)
          request(
            :body     => MultiJson.encode(body),
            :expects  => expects,
            :method   => 'POST',
            :path     => "servers/#{server_id}/action.json"
          )
        end

      end
    end
  end
end

Version data entries

29 entries across 29 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
michiels-fog-1.3.1 lib/fog/rackspace/requests/compute/server_action.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
fog-1.3.1 lib/fog/rackspace/requests/compute/server_action.rb
fog-1.3.0 lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
fog-1.2.0 lib/fog/rackspace/requests/compute/server_action.rb
ktheory-fog-1.1.2 lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
fog-1.1.2 lib/fog/rackspace/requests/compute/server_action.rb
fog_tractical-1.1.4 lib/fog/rackspace/requests/compute/server_action.rb
fog_tractical-1.1.3 lib/fog/rackspace/requests/compute/server_action.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/compute/server_action.rb
fog-1.1.1 lib/fog/rackspace/requests/compute/server_action.rb
fog-1.1.0 lib/fog/rackspace/requests/compute/server_action.rb