lib/openstack/compute/server.rb
def start
      data = JSON.generate('os-start' => nil)
      response = @compute.connection.csreq("POST",@svrmgmthost,"#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/action",@svrmgmtport,@svrmgmtscheme,{'content-type' => 'application/json'},data)
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      true
    end
# Sends an API request to start (resume) the server.
#
# Returns true if the API call succeeds.
#
#   >> server.start()
#   => true
Sends an API request to start (resume) the server.
Returns true if the API call succeeds.


Sends an API request to start ( resume ) the server . Returns true if the API call succeeds .
def start
      data = JSON.generate('os-start' => nil)
      response = @compute.connection.csreq("POST",@svrmgmthost,"#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/action",@svrmgmtport,@svrmgmtscheme,{'content-type' => 'application/json'},data)
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      true
    end
def start data = JSON . generate ( 'os-start' => nil ) response = @compute . connection . csreq ( "POST" , @svrmgmthost , "#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/action" , @svrmgmtport , @svrmgmtscheme , { 'content-type' => 'application/json' } , data ) OpenStack :: Exception . raise_exception ( response ) unless response . code . match ( / ^20.$ / ) true end
Sends an API request to start (resume) the server.
Sends an API request to start ( resume ) the server .