PowerShell module for the F5 LTM REST API
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Thanks for clarifying re: the parentheses in the New-Object call. The code works as is, but it is more in line with PowerShell standards to not include the parentheses, so I'll remove them.
Re: the call to get pool member connections, if you call the deprecated function Get-CurrentConnectionCount, you'll get a message that it's recommended to use:
Get-PoolMemberStats | Select-Object -ExpandProperty 'serverside.curConns'
which is similar to your method. However, this may no longer work as of v12.1, so I have an open issue in the GitHub project to look into this.
Cheers, Joel