Sha256: 6f7e5577ad34aaa1c4b68cd4f35e3fbee6e465a6738711a0bcd3a3542bdc0b8b

Contents?: true

Size: 576 Bytes

Versions: 4

Compression:

Stored size: 576 Bytes

Contents

class HostPoolsController < ApplicationController
  respond_to :json
  
  def index
  end
  
  def list
    data = {
      :start => params[:start].to_i - 1,
      :limit => params[:limit]
    }
    host_pools = DcmgrResource::HostPool.list(data)
    respond_with(host_pools[0], :to => [:json])
  end
  
  def show
    host_pool_id = params[:id]
    detail = DcmgrResource::HostPool.show(host_pool_id)
    respond_with(detail,:to => [:json])
  end
  
  def show_host_pools
    host_pools = DcmgrResource::HostPool.list
    respond_with(host_pools[0],:to => [:json])
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wakame-vdc-webui-11.12.0 app/controllers/host_pools_controller.rb
wakame-vdc-webui-11.06.0 app/controllers/host_pools_controller.rb
wakame-vdc-webui-10.12.0 app/controllers/host_pools_controller.rb
wakame-vdc-webui-10.11.0 app/controllers/host_pools_controller.rb