PowerShell module for the F5 LTM REST API
Problem this snippet solves: To report an issue with the F5-LTM or F5-BIGIP modules, please use the Issues sections of the GitHub repos (here and here) instead of commenting here. Thanks!
This Pow...
Updated Jun 06, 2023
Version 2.0Joel_Newton
Cirrus
Joined September 06, 2012
LC1729_360106
May 04, 2018Nimbostratus
Thanks again Joel.
I was able to get node stats like so
$ltmNode = Get-Node -F5Session $F5Session -Name $nodeName -Partition $partition
$nodeStatsUri = $F5Session.GetLink($ltmNode.selfLink) -replace '\?', '/stats?'
$statsResponse = Invoke-RestMethodOverride -Method Get -URI $nodeStatsUri -WebSession $F5Session.WebSession
And access the properties I'm interested in
$entries = $statsResponse.entries
$currentConnections = $entries.'serverside.curConns'.value
$enabledState = $entries.'status.enabledState'.description