3 define_request :rebuild_server, :inherit => [:openstack, :common, :v2, :public, :base] do
5 meta :service, :compute
8 'http://docs.openstack.org/api/openstack-compute/2/content/Rebuild_Server-d1e3538.html'
10 param :accessIPv4, :required => false, :alias => :access_ipv4
11 param :accessIPv6, :required => false, :alias => :access_ipv6
12 param :adminPass, :required => true, :alias => :admin_pass
13 param :id, :required => true
14 param :imageRef, :required => true, :alias => :image_ref
15 param :metadata, :required => false
16 param :name, :required => true
17 param :personality, :required => false
23 :adminPass => params[:adminPass],
24 :imageRef => params[:imageRef],
25 :name => params[:name]
29 [:accessIPv4, :accessIPv6, :metadata, :personality].each do |key|
30 p[:rebuild][key] = params[key] if params[key]
48 "#{ base_url }/servers/#{ params[:id] }/action"