Method: Fog::Rackspace::Databases::Real#create_instance
- Defined in:
- lib/fog/rackspace/requests/databases/create_instance.rb
#create_instance(name, flavor_id, volume_size, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/rackspace/requests/databases/create_instance.rb', line 5 def create_instance(name, flavor_id, volume_size, = {}) data = { 'instance' => { 'name' => name, 'flavorRef' => flavor_id, 'volume' => { 'size' => volume_size } } } request( :body => Fog::JSON.encode(data), :expects => 200, :method => 'POST', :path => 'instances' ) end |