Method: Fog::Compute::Slicehost::Real#get_image
- Defined in:
- lib/fog/slicehost/requests/compute/get_image.rb
#get_image(image_id) ⇒ Object
Get details of an image
Parameters
-
image_id<~Integer> - Id of image to lookup
Returns
-
response<~Excon::Response>:
-
body<~Array>:
-
‘id’<~Integer> - Id of the image
-
‘name’<~String> - Name of the image
-
-
18 19 20 21 22 23 24 25 |
# File 'lib/fog/slicehost/requests/compute/get_image.rb', line 18 def get_image(image_id) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::Compute::Slicehost::GetImage.new, :path => "images/#{image_id}.xml" ) end |