Private/Get-VCDAPassExp.ps1
|
<# Copyright (c) CA, Inc. All rights reserved. SPDX-License-Identifier: LicenseRef-CA-Inc-Software-License #> function Get-VCDAPassExp { [CmdletBinding()] param ( # VCDA Server [Parameter(Mandatory = $false)] [PSTypeName('VCDAServer')]$Server ) process { try { $LocalvarServer = $Global:DefaultVCDAServer if ($null -ne $server) { $LocalvarServer = $server } $LocalvarInvokeParams = @{ 'path' = '/config/root-password-expired' 'method' = 'GET' 'client' = $LocalvarServer } $LocalVarResponse = Invoke-VCDARequest @LocalvarInvokeParams return $LocalVarResponse.response } catch { $PSCmdlet.ThrowTerminatingError($_) } } } |