Method: Morpheus::CloudsInterface#update
- Defined in:
- lib/morpheus/api/clouds_interface.rb
#update(id, payload) ⇒ Object
53 54 55 56 57 58 |
# File 'lib/morpheus/api/clouds_interface.rb', line 53 def update(id, payload) url = "#{@base_url}/api/zones/#{id}" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } opts = {method: :put, url: url, headers: headers, payload: payload.to_json} execute(opts) end |