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
Julio_Navarro
Mar 07, 2016Cirrostratus
Hi! I am getting an error:
PS C:\Users\user-1> Get-Pool | Select-Object -ExpandProperty fullPath
ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
At C:\Users\user-1\Documents\WindowsPowerShell\Modules\F5-LTM\Public\Invoke-RestMethodOverride.ps1:29 char:50
+ $message = $_.ErrorDetails.Message | ConvertFrom-json | Select-Objec ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [ConvertFrom-Json], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidati NullNotAllowed,Microsoft.PowerShell.Commands.ConvertFrom
JsonCommand
Invoke-RestMethodOverride : "401 F5 Authorization Required: Failed to get the /*/*' pool(s).
At C:\Users\user-1\Documents\WindowsPowerShell\Modules\F5-LTM\Public\Get-Pool.ps1:28 char:21
+ $JSON = Invoke-RestMethodOverride -Method Get -Uri $Uri -Credential ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-RestMethodOverride
PS C:\Users\user-1>
Please advise