Method: Morpheus::LibraryInstanceTypesInterface#get
- Defined in:
- lib/morpheus/api/library_instance_types_interface.rb
#get(id, params = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/morpheus/api/library_instance_types_interface.rb', line 5 def get(id, params={}) raise "#{self.class}.get() passed a blank id!" if id.to_s == '' # new URL is available in api 4.2 + # url = "#{@base_url}/api/library/#{id}" url = "#{@base_url}/api/library/#{id}" headers = { params: params, authorization: "Bearer #{@access_token}" } opts = {method: :get, url: url, headers: headers} execute(opts) end |