Method: IBMSmartCloud#import_image

Defined in:
lib/smartcloud.rb

#import_image(name, volume_id) ⇒ Object



199
200
201
202
203
# File 'lib/smartcloud.rb', line 199

def import_image(name, volume_id)
  # TODO: this is a complete guess as we have no info from IBM as to the URL for this api, only the parameters
  response = post("/offerings/image", :volumeId => volume_id, :name => name)
  response.Image.ID
end