Method: Morpheus::CloudsInterface#get

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

#get(id, params = {}) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/morpheus/api/clouds_interface.rb', line 31

def get(id, params={})
  validate_id!(id)
  url = "#{@base_url}/api/zones/#{id}"
  headers = { params: params, authorization: "Bearer #{@access_token}" }
  opts = {method: :get, url: url, headers: headers}
  execute(opts)
end