Sha256: 0d143c1948922e3d06488c5a104546122884f3171dc616afca1ce729da33bde2
Contents?: true
Size: 917 Bytes
Versions: 9
Compression:
Stored size: 917 Bytes
Contents
module Fog module NewServers class Compute class Real # Boot a new server # # ==== Parameters # * planId<~String> - The id of the plan to boot the server with # * options<~Hash>: optional extra arguments # * imageId<~String> - Optional image to boot server from # * name<~String> - Name to boot new server with # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'server'<~Hash>: # * 'id'<~String> - Id of the image # def add_server(plan_id, options = {}) request( :expects => 200, :method => 'GET', :parser => Fog::ToHashDocument.new, :path => 'api/addServer', :query => {'planId' => plan_id}.merge!(options) ) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems