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
Joel_Newton
Apr 29, 2016Cirrus
Hi, it looks like you're close. When you call:
New-F5session -LTMName $host_address -LTMCredentials $mycreds -PassThrough
you should see your session object written out to the console if you successfully connect. -PassThrough is really only needed if you're going to capture the session in a variable and then pass it to a function. You could try:
$F5Session = New-F5session -LTMName $host_address -LTMCredentials $mycreds -PassThrough;
Get-Pool -F5Session $F5Session | Select-Object -ExpandProperty fullPath;
Let me know if this helps. Thanks.