Sha256: e6a302e5acf916cc96e60ac28000ec300cdad0b6ece461c4e5a17738683db40f
Contents?: true
Size: 929 Bytes
Versions: 1
Compression:
Stored size: 929 Bytes
Contents
module Fog module Linode class Compute class Real # Creates a linode and assigns you full privileges # # ==== Parameters # * datacenter_id<~Integer>: id of datacenter to place new linode in # * plan_id<~Integer>: id of plan to boot new linode with # * payment_term<~Integer>: Subscription term in months, in [1, 12, 24] # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # TODO: docs def linode_create(datacenter_id, plan_id, payment_term) request( :expects => 200, :method => 'GET', :query => { :api_action => 'linode.create', :datacenterId => datacenter_id, :paymentTerm => payment_term, :planId => plan_id } ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.8.2 | lib/fog/compute/requests/linode/linode_create.rb |