]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/admin/get_host_details.rb
add aimonb/aviator to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / aviator / feature / aviator / openstack / compute / v2 / admin / get_host_details.rb
diff --git a/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/admin/get_host_details.rb b/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/admin/get_host_details.rb
new file mode 100644 (file)
index 0000000..daf25a3
--- /dev/null
@@ -0,0 +1,29 @@
+module Aviator
+
+  define_request :get_host_details, :inherit => [:openstack, :common, :v2, :admin, :base] do
+
+    meta :service, :compute
+
+    link 'documentation',
+      'http://api.openstack.org/api-ref.html#ext-os-hosts'
+
+    param :host_name, :required => true
+
+
+    def headers
+      super
+    end
+
+
+    def http_method
+      :get
+    end
+
+
+    def url
+      "#{ base_url }/os-hosts/#{ params[:host_name] }"
+    end
+
+  end
+
+end