Private/Get-VCDAInfo.ps1
|
<# Copyright (c) CA, Inc. All rights reserved. SPDX-License-Identifier: LicenseRef-CA-Inc-Software-License #> function Get-VCDAInfo { [CmdletBinding()] param ( # Parameter help description [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] [PSTypeName('VCDAServer')]$Server ) process { try { $LocalvarServer = $Global:DefaultVCDAServer if ($null -ne $server){ $LocalvarServer = $server } $LocalvarInvokeParams = @{ 'path' = "/diagnostics/about" 'Method' = "GET" 'client' = $LocalvarServer } $LocalVarResult = Invoke-VCDARequest @LocalvarInvokeParams return $LocalVarResult.response } catch { $PSCmdlet.ThrowTerminatingError($_) } } } |