3 define_request :create_image, :inherit => [:openstack, :common, :v2, :public, :base] do
5 meta :service, :compute
8 'http://docs.openstack.org/api/openstack-compute/2/content/Create_Image-d1e4655.html'
10 param :id, :required => true
11 param :metadata, :required => false
12 param :name, :required => true
18 :name => params[:name]
22 [:metadata].each do |key|
23 p[:createImage][key] = params[key] if params[key]
41 "#{ base_url }/servers/#{ params[:id] }/action"