class CloudServers::Connection

Public Instance Methods

list_servers_detail(options = {}) click to toggle source
# File lib/deltacloud/drivers/rackspace/anti_cache_monkey_patch.rb, line 10
def list_servers_detail(options = {})
  anti_cache_param="cacheid=#{Time.now.to_i}"
  path = CloudServers.paginate(options).empty? ? "#{svrmgmtpath}/servers/detail?#{anti_cache_param}" : "#{svrmgmtpath}/servers/detail?#{CloudServers.paginate(options)}&#{anti_cache_param}"
  response = csreq("GET",svrmgmthost,path,svrmgmtport,svrmgmtscheme)
  CloudServers::Exception.raise_exception(response) unless response.code.match(%r^20.$/)
  CloudServers.symbolize_keys(JSON.parse(response.body)["servers"])
end
Also aliased as: servers_detail
servers_detail(options = {}) click to toggle source
Alias for: list_servers_detail