Method: Morpheus::LibraryInstanceTypesInterface#create

Defined in:
lib/morpheus/api/library_instance_types_interface.rb

#create(options) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/morpheus/api/library_instance_types_interface.rb', line 22

def create(options)
  url = "#{@base_url}/api/library"
  headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
  payload = options
  opts = {method: :post, url: url, headers: headers, payload: payload.to_json}
  execute(opts)
end