F5 LTM SOAP API - Ruby f5-icontrol Gem - Could not find element by name: pool_names
Hi there,
Very much hoping there is someone that can help me with this problem. I am trying to gather some information about pool members from the F5 API (still on SOAP for a little while more).
I am using the f5-icontrol Gem described here: http://www.rubydoc.info/gems/f5-icontrol/0.1.5
Specifically, I am trying to call the LocalLB.Pool.get_all_member_statistics method passing in a string of the pool name and receive the following error:
/full/path/ruby-2.1.6/gems/savon-2.11.1/lib/savon/response.rb:85:in `raise_soap_and_http_errors!': (SOAP-ENV:Server) **Could not find element by name: pool_names** (Savon::SOAPFault)
I am able to run a number of other methods and get back data, for example I can run api.LocalLB.Pool.get_list & api.Management.UserManagement.get_my_permission() and data is returned immediately. Also, the string I am passing in to get_all_member_statistics is the exact string returned by api.LocalLB.Pool.get_list.
Note that I tried running as a normal user as well as an F5 admin.
Here is my exact code:
require 'f5-icontrol'
F5::Icontrol.configure do |f|
f.host = "big-ip-url.domain.com"
f.username = "user"
f.password = "pass"
end
api = F5::Icontrol::API.new
get_list runs perfectly and returns all of the pool names in the format of "/Common/full_pool_name" for example
response = api.LocalLB.Pool.get_list
This successfully returns the permissions for the current user
response = api.Management.UserManagement.get_my_permission()
This is NOT working and returns the error above
response = api.LocalLB.Pool.get_all_member_statistics("Common/full_pool_name_exactly_as_it_appears_in_the_UI")
puts response.inspect