Module: Arbor::Peakflow::TMS_Appliance

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

Instance Method Summary collapse

Instance Method Details

#tms_appliance(action, filter = nil) ⇒ Object

The TMS function allows you to view and update TMS appliance configurations in JSON format.

Parameters:

  • action: One of the following actions that you want to initiate:

list, show_schema, update.

  • 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 Configure Routers page in the Web UI.

Example

response = client.tms_appliance 'show_schema'


17
18
19
20
21
22
23
24
25
26
# File 'lib/arbor_peakflow_ruby/actions/tms_appliance.rb', line 17

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

  response
end