Method: Morpheus::CloudsInterface#sync

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

#sync(id, params = {}, payload = {}) ⇒ Object



74
75
76
77
78
79
# File 'lib/morpheus/api/clouds_interface.rb', line 74

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