Forum Discussion

stetu_237492's avatar
stetu_237492
Icon for Nimbostratus rankNimbostratus
Jun 01, 2017

disabling monitoring for pool member

Hi,

 

I'm converting a system implemented in Java from iControl to iControlREST and I'm having difficulties finding how to disable the monitoring for a pool member.

 

With iControl you can set the a LocalLBPoolMemberMemberSessionState to iControl.CommonEnabledState.STATE_ENABLED or iControl.CommonEnabledState.STATE_DISABLED to do so.

 

But from the iControlREST API, it's not so clear, as the "session" cannot be changed from "monitor-enabled" to "monitor-disabled".

 

I know I can turn the pool member offline and online again by setting a combination of "session" and "state" as indicated here:

 

https://devcentral.f5.com/articles/icontrol-rest-working-with-pool-members

 

But I can't seem to figure out how to replicate the behavior of iControl to only disable monitoring.

 

Thanks in advance to anyone who can point me in the right direction...

 

4 Replies

    • stetu_237492's avatar
      stetu_237492
      Icon for Nimbostratus rankNimbostratus

      I'd like to be able to toggle on/off monitoring for a pool member.

       

      I know it's possible to see the state of the monitor with a GET request to the REST Api through /mgmt/tm/ltm/pool/THE-POOL/members/THE-MEMBER/stats

       

      Ex: ....."entries":{........."monitorStatus":{"description":"up"}..........}

       

      But I don't if it's possible to formulate a valid JSON string to change a value with a PUT request to modify stats (as it would make sense that they're read-only).

       

    • stetu_237492's avatar
      stetu_237492
      Icon for Nimbostratus rankNimbostratus

      I'd like to be able to toggle on/off monitoring for a pool member.

       

      I know it's possible to see the state of the monitor with a GET request to the REST Api through /mgmt/tm/ltm/pool/THE-POOL/members/THE-MEMBER/stats

       

      Ex: ....."entries":{........."monitorStatus":{"description":"up"}..........}

       

      But I don't if it's possible to formulate a valid JSON string to change a value with a PUT request to modify stats (as it would make sense that they're read-only).