Forum Discussion
Help on create GTM Pool
Stefano, It looks like you've given only a snippet of code here rather than your entire sub-routine or whatever it's called in powershell because there are variables that I see being used that have no corresponding declaration.
I can tell you honestly that it's highly likely the problem is in your code, not the API. At the same time, while I can generally read powershell, if not write it, I can't look something over without a full blurb. I'd be happy to look it over if you could modify your post to include all relevant code.
This bigsuds command will create a pool with the proper members on any box using code higher than 9.3, even though the GlobalLB.Pool.create command is deprecated as of v11 (create_v2 should be used instead).
b.GlobalLB.Pool.create(['www.example.com'],['LB_METHOD_GLOBAL_AVAILABILITY'],[[{'member': {'port': 80, 'address': '2.2.2.2'}, 'order': 1}, {'member': {'port': 80, 'address': '1.1.1.1'}, 'order': 0}]])
Note: The entire GlobalLB.Pool section has been deprecated as of v12 and should not be used with that code branch. GlobalLB.PoolV2 should be used in its place.
Hope that the bigsuds snippet gives you something to compare your own code to. Alternatively, you could enable SOAP debugging and confirm that properly formed XML is being sent, which might help you identify the snag. Doing a get_member on an existing pool should give you the data you need for comparison with the XML that you're sending.
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