Sha256: 9de65d1b2a03fcdd06d11d29d45ec218019498b267c7c7e44d2b05dcdd6875f3
Contents?: true
Size: 921 Bytes
Versions: 87
Compression:
Stored size: 921 Bytes
Contents
module Fog module Compute class BareMetalCloud 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
87 entries across 87 versions & 15 rubygems