PowerShell module for the F5 LTM REST API
Hi Joel
I am at a loss here. I can successfully run functions which don't in turn call other functions, however when I run functions like Get-PoolMember which in turn calls Get-Pool, my session object is not being carried through. I am using the -passthru parameter.
This Works* $MyLTM_IP = '10.0.0.1' $PoolName = 'myPoolName' $Partition = 'myPartition'
$F5Session = New-F5Session -LTMName $MyLTM_IP -LTMCredentials $MyLTMCreds -PassThru
Get-Pool -F5Session $F5Session -Name $PoolName -Partition $Partition
This DOESNT work* $MyLTM_IP = '10.0.0.1' $PoolName = 'myPoolName' $Partition = 'myPartition'
$F5Session = New-F5Session -LTMName $MyLTM_IP -LTMCredentials $MyLTMCreds -PassThru
Get-PoolMember -F5Session $F5Session -PoolName $PoolName -Partition $Partition
I get this error : Invoke-F5RestMethod : "401 F5 Authorization Required: An authorization header is missing.
Thanks Mike