functions/Get-AnalysisPrepInputs.ps1

Function Get-AnalysisPrepInputs
{
    [cmdletbinding()]
    param(
        [Parameter(Mandatory=$true)]
        [string]$AnalysisPrepID
    )

    $uri = $CDXSERVER + "/api/analysis-prep/" + $AnalysisPrepID + "/input0"

    $ToolList = Invoke-RestMethod -Uri $uri -Method Get -Headers $headers -ContentType "application/json" 

    Write-Verbose ( $ToolList | Format-Table | Out-String )

    Write-Host "Number of Tools to be used: " $ToolList.tags.count -ForegroundColor Green
    Write-Host "Tool Name : Tool ID : Enabled (T/F)" -ForegroundColor Green
    Write-Host "---------------------------------" -ForegroundColor Green
    ForEach ($strTool in $ToolList.tags)
    {
        $toolname = $strTool.toolInput + $($strTool.source) + $($strTool.binary)

        Write-Host "$($toolname.Trim()) : $($strTool.id) : $($strTool.enabled)"
    }
}