Forum Discussion
Jan 07, 2014
does iControl GTM pool create_v2 method actually work as documented?
I am trying to create a GTM pool using the create_v2 method as described here:https://devcentral.f5.com/wiki/iControl.GlobalLB__Pool__create_v2.ashx which says to pass in a type of VirtualServerID. ...
JRahm
Jan 08, 2014Admin
I don't know ruby, but it is working fine in python:
>>>b.GlobalLB.Pool.create_v2(pool_names = ['/Common/p2'], lb_methods = ['LB_METHOD_ROUND_ROBIN'], members = [[{'name': '/partition1/testvip', 'server': '/Common/ltm1'}, {'name': '/partition2/testvip', 'server': '/Common/ltm1'}, {'name': '/partition3/testvip', 'server': '/Common/ltm1'}]], orders = [[0, 1, 2]])
>>> b.GlobalLB.Pool.get_list()
['/Common/p1', '/Common/p2']
>>> b.GlobalLB.Pool.get_member_v2(['/Common/p2'])
[[{'name': '/partition1/testvip', 'server': '/Common/ltm1'}, {'name': '/partition2/testvip', 'server': '/Common/ltm1'}, {'name': '/partition3/testvip', 'server': '/Common/ltm1'}]]
>>> gtmp.get_member_order(['/Common/p2'], [[{'name': '/partition1/testvip', 'server': '/Common/ltm1'}, {'name': '/partition2/testvip', 'server': '/Common/ltm1'}, {'name': '/partition3/testvip', 'server': '/Common/ltm1'}]])
[[0, 1, 2]]
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects