Forum Discussion
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...
- Ryan_80361
Cirrostratus
Do you mean you wish to remove the monitor from the pool?
- stetu_237492
Nimbostratus
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).
- Ryannnnnnnnn
Altocumulus
Do you mean you wish to remove the monitor from the pool?
- stetu_237492
Nimbostratus
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).
Recent Discussions
Related Content
* 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