Public/Get-CapacityPlanningScenario.ps1

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


function Get-CapacityPlanningScenario {
    [CmdletBinding()]
    param (
        $uuid
    )
    
    if ($uuid) {
        $response = Send-Request -method "GET" -endpoint "/capacity_planning/scenarios/$($uuid)"
        return $response
    }

    $params = @{
        "offset" = 0
        "limit" = 50
    }

    $response = Send-Request -method "GET" -endpoint "/capacity_planning/scenarios" -params $params
    return $response.scenarios
}