Forum Discussion
Derek_Murphy_38
Aug 21, 2012Nimbostratus
API doc for iControl?
Hi,
I was wondering if there was an API doc that explained top level down what was available to call etc. I just installed the icontrol gem for ruby and looked at some of the examples, but was wondering what else I can do and where the best place to start reading would be.
Specifically my goal is going to be to disable/enable pool members based on a few params passed - pool name and node IP address.
Any help is most appreciated!
- Derek_Murphy_38NimbostratusI found what I'm looking for: https://devcentral.f5.com/wiki/iControl.LocalLB__Pool__get_member_session_status.ashx
- Darrell_G_36120AltocumulusI haven't checked the code to disable the member from the pool, but do have a snippet where i disable the node itself (after I add it).
Create node if it doesn't already exist. unless bigip['LocalLB.NodeAddressV2'].get_list.include? '/Common/' + node_name bigip['LocalLB.NodeAddressV2'].create([ node_name ], [ node_address ], [0]) puts ' Created node "' + node_name + '" with IP Address "' + node_address + '"...' After we add a member... let's disable the node state bigip['LocalLB.NodeAddressV2'].set_session_enabled_state([ node_name ], [ "STATE_DISABLED" ]) puts ' Node "' + node_name + '"set to disabled..."' else puts ' Node "' + node_name + '" already exists! Not Added.' end
- Derek_Murphy_38NimbostratusDarrell,
- Darrell_G_36120AltocumulusHere's a snippet of my updated f5-node-initiator (this was the one good example of pool/node manipulation using the Ruby iControl).
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