public/Get-VSAModuleFunctions.ps1
function Get-VSAFunctions { <# .Synopsis Returns a count and array of all function IDs. .DESCRIPTION Returns system-wide properties of the VSA. Takes either persistent or non-persistent connection information. .PARAMETER VSAConnection Specifies existing non-persistent VSAConnection. .PARAMETER URISuffix Specifies URI suffix if it differs from the default. .EXAMPLE Get-VSAFunctions .EXAMPLE Get-VSAFunctions -VSAConnection $connection .INPUTS Accepts piped non-persistent VSAConnection .OUTPUTS Array of ids that represent VSA functions #> [CmdletBinding()] param ( [parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'NonPersistent')] [VSAConnection] $VSAConnection, [parameter(Mandatory=$false, ValueFromPipelineByPropertyName=$true, ParameterSetName = 'NonPersistent')] [parameter(Mandatory=$false, ValueFromPipelineByPropertyName=$true, ParameterSetName = 'Persistent')] [ValidateNotNullOrEmpty()] [string] $URISuffix = 'api/v1.0/functions' ) [hashtable]$Params =@{ URISuffix = $URISuffix } if($VSAConnection) {$Params.Add('VSAConnection', $VSAConnection)} return Get-VSAItems @Params } Export-ModuleMember -Function Get-VSAFunctions |