Get-QlikValidEngines.ps1
function Get-QlikValidEngines { <# .SYNOPSIS This function ... .DESCRIPTION A bit more description .PARAMETER FromPipeline Shows how to process input from the pipeline, remaining parameters or by named parameter. .EXAMPLE Get-QlikValidEngines 'abc' Description of the example. #> <# Enable -Confirm and -WhatIf. #> [CmdletBinding(SupportsShouldProcess = $true)] param( [parameter(Position=0)] [string]$proxyId, [parameter(Position=1)] [string]$proxyPrefix, [parameter(Position=2)] [string]$appId, [parameter(Position=3)] [ValidateSet("Production","Development","Any")] [string]$loadBalancingPurpose, [switch]$raw ) begin { } process { $json = (@{ proxyId = $proxyId; proxyPrefix = $proxyPrefix; appId = $appId; loadBalancingPurpose = $loadBalancingPurpose } | ConvertTo-Json -Compress -Depth 10) If( $raw ) { $rawOutput = $true } Invoke-QlikPost "/qrs/loadbalancing/validengines" $json } end { } } if ($loadingModule) { Export-ModuleMember -Function 'Get-QlikValidEngines' } |