Forum Discussion
kwondra34_26054
Nimbostratus
Apr 22, 2016F5 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).
...
May 26, 2016
First of all, sorry for the delay. Had a heck of a time getting this running on my mac. Also, I'm a noob with Ruby so I'm trying to figure it out myself.
Regarding the "couldn't find element by name" error, that means that the server didn't see the specific parameter in the request. In your code, you are just passing in a string literal and I think you need to specify the parameter name and encode the value as an array. I tried this out and it seemed to work:
response = api.LocalLB.Pool.get_all_member_statistics(
pool_names: {
item: [
"Common/full_pool_name_exactly_as_it_appears_in_the_UI"
]
}
);You will likely have to do the same for structures when used as parameters.
Hope this gets you going - finally! Again, sorry for the delay and hope this helps.
-Joe