Module: Arbor::Peakflow::Managed_Object

Included in:
Client
Defined in:
lib/arbor_peakflow_ruby/actions/managed_object.rb

Instance Method Summary collapse

Instance Method Details

#managed_object(filter = nil) ⇒ Object

The managed object function allows you to view managed object configuration data in JSON format.

Parameters:

  • filter: (Optional) Keywords by which you want to filter search

results. You can enter the same search strings that you can enter in the Search box on the Managed Objects pages in the Web UI.

Example

response = client.managed_object 'dorms'


15
16
17
18
19
20
21
22
23
# File 'lib/arbor_peakflow_ruby/actions/managed_object.rb', line 15

def managed_object(filter = nil)
  response = @conn.get do |req|
    req.url 'arborws/admin/managed_object'
    req.params['api_key'] = @api_key
    req.params['filter'] = filter unless filter.nil?
  end

  response
end