Class Fog::Compute::RackspaceV2::Servers
In: lib/fog/rackspace/models/compute_v2/servers.rb
Parent: Fog::Collection

Methods

all   bootstrap   get  

Public Instance methods

Returns list of servers @return [Fog::Compute::RackspaceV2::Servers] Retrieves a list servers. @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404 @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400 @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500 @raise [Fog::Compute::RackspaceV2::ServiceError] @note Fog‘s current implementation only returns 1000 servers @note The filter parameter on the method is just to maintain compatability with other providers that support filtering. @see docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Servers-d1e2078.html

Creates a new server and populates ssh keys @return [Fog::Compute::RackspaceV2::Server] @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404 @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400 @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500 @raise [Fog::Compute::RackspaceV2::ServiceError] @note This method is incompatible with Cloud Servers utlizing RackConnect ***if and only if***

      provided the attribute "passwd_lock" left at *false*.

@example

  service.servers.bootstrap :name => 'bootstrap-server',
                            :flavor_id => service.flavors.first.id,
                            :image_id => service.images.find {|img| img.name =~ /Ubuntu/}.id,
                            :public_key_path => '~/.ssh/fog_rsa.pub',
                            :private_key_path => '~/.ssh/fog_rsa'

@raise [Fog::Compute::RackspaceV2::InvalidServerStateException] if server state is an error state

Retrieves server @param [String] server_id for server to be returned @return [Fog::Compute::RackspaceV2:Server] @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404 @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400 @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500 @raise [Fog::Compute::RackspaceV2::ServiceError] @see docs.rackspace.com/servers/api/v2/cs-devguide/content/Get_Server_Details-d1e2623.html

[Validate]