Sha256: b4158ab6fa1c0423670d140c04b8147bfe9931f831c6b1f4d9bc712bf5e9a577
Contents?: true
Size: 696 Bytes
Versions: 9
Compression:
Stored size: 696 Bytes
Contents
module Fog module Rackspace class Compute class Real # Reboot an existing server # # ==== Parameters # * server_id<~Integer> - Id of server to reboot # * body<~.to_json object> - 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 => body.to_json, :expects => expects, :method => 'POST', :path => "servers/#{server_id}/action.json" ) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems