Forum Discussion
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