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 w...
Darrell_G_36120
Aug 21, 2012Altocumulus
I 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).
This is using 11.2 F5 iControl GEM.
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
Hope it helps.
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