Forum Discussion
F5 LTM SOAP API - Ruby f5-icontrol Gem - Could not find element by name: pool_names
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com