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