| Class | Fog::Compute::OpenStack::Servers |
| In: |
lib/fog/compute/openstack/models/servers.rb
|
| Parent: | Fog::OpenStack::Collection |
Creates a new server and populates ssh keys @return [Fog::Compute::OpenStack::Server] @raise [Fog::Compute::OpenStack::NotFound] - HTTP 404 @raise [Fog::Compute::OpenStack::BadRequest] - HTTP 400 @raise [Fog::Compute::OpenStack::InternalServerError] - HTTP 500 @raise [Fog::Compute::OpenStack::ServiceError] @example
service.servers.bootstrap :name => 'bootstrap-server',
:flavor_ref => service.flavors.first.id,
:image_ref => service.images.find {|img| img.name =~ /Ubuntu/}.id,
:public_key_path => '~/.ssh/fog_rsa.pub',
:private_key_path => '~/.ssh/fog_rsa'