]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/public/get_image_details.rb
add aimonb/aviator to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / aviator / feature / aviator / openstack / compute / v2 / public / get_image_details.rb
diff --git a/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/public/get_image_details.rb b/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/public/get_image_details.rb
new file mode 100644 (file)
index 0000000..b9fd3cc
--- /dev/null
@@ -0,0 +1,29 @@
+module Aviator
+  
+  define_request :get_image_details, :inherit => [:openstack, :common, :v2, :public, :base] do
+
+    meta :service, :compute
+
+    link 'documentation',
+         'http://docs.openstack.org/api/openstack-compute/2/content/Get_Image_Details-d1e4848.html'
+
+    param :id, :required => true
+
+
+    def headers
+      super
+    end
+
+
+    def http_method
+      :get
+    end
+
+
+    def url
+      "#{ base_url }/images/#{ params[:id]}"
+    end
+
+  end
+
+end
\ No newline at end of file