lib/newrelic-management/client.rb
def get_server_name(server, exact = true)
      ret = nr_api.get(url('servers'), 'filter[name]' => server).body
      return ret['servers'] unless exact
      ret['servers'].find { |x| x['name'].casecmp(server).zero? }
    rescue NoMethodError
      nil
    end
def get_server_name(server, exact = true)
      ret = nr_api.get(url('servers'), 'filter[name]' => server).body
      return ret['servers'] unless exact
      ret['servers'].find { |x| x['name'].casecmp(server).zero? }
    rescue NoMethodError
      nil
    end
=> Get a Server based on Name