# File lib/fog/compute/ecloud/models/server.rb, line 169 def detach_disk(index) options = {} options[:disk] = disks.detect { |disk_hash| disk_hash[:Index] == index.to_s } options[:name] = name options[:description] = description data = service.virtual_machine_detach_disk(href + "/hardwareconfiguration/disks/actions/detach", options).body service.detached_disks.new(data) end