Method: Morpheus::CloudsInterface#create

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

#create(payload) ⇒ Object



46
47
48
49
50
51
# File 'lib/morpheus/api/clouds_interface.rb', line 46

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