Method: Morpheus::LibraryOperatingSystemsInterface#create_image
- Defined in:
- lib/morpheus/api/library_operating_systems_interface.rb
#create_image(payload) ⇒ Object
36 37 38 39 40 41 |
# File 'lib/morpheus/api/library_operating_systems_interface.rb', line 36 def create_image(payload) url = "#{@base_url}/api/library/operating-systems/os-types/create-image" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } opts = {method: :post, url: url, headers: headers, payload: payload.to_json} execute(opts) end |