I’m currently working with the bigsuds python library to start automating our configuration through the iControl api. I’m looking for an iControl method that will allow me to disable a pool member, but I’m unable to find anything in the Pool module. Is there a method that does this easily?
Assuming this is for the LTM module function, it looks like you want LocalLB::Pool::set_member_session_enabled_state:
The description reads: “Sets the session states for a set of pool members. If session state is enabled or true, this means that new sessions will be allowed to be established with the pool members.”
Though I’ve not tested it, it appears that setting this to false for a pool member should be the equivalent of disabling the pool member (that is, it continues to process persistent and active connections, but no additional connections are directed to it):