Private/WhatsUpGold/_GetWUGProductVersion.ps1
function _GetWUGProductVersion { [CmdletBinding()] param ( [switch]$ShowQuery ) begin { $Method = 'Get' $APICall = 'product/version' } process { if ($ShowQuery) { Write-Host $APICall } $Data = _InvokeSTTWUGRestMethod -APICall $APICall -Method $Method } end { return $Data.data.values } } |