Public/Get-CapacityPlanningReport.ps1

<#
    .DESCRIPTION
    Wrapper for Nutanix API version 0.3.
 
    .NOTES
    Author: Timothy Rasiah
#>


function Get-CapacityPlanningReport {
    [CmdletBinding()]
    param (
        $ScenarioUuid,
        $TaskUuid
    )
    
    if ($ScenarioUuid) {
        $data = @{
            "scenario_uuid" = $ScenarioUuid
        }

        $response = Send-Request -method "POST" -endpoint "/capacity_planning/reports" -data $data
        $entities += $response
    }

    if ($TaskUuid) {
        $response = Send-Request -method "GET" -endpoint "/capacity_planning/reports/$($TaskUuid)"
        return $response
    }
}