Public/Download-Image.ps1

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


function Download-Image {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory=$true)]
        [String]$Uuid,
        [Parameter(Mandatory=$true)]
        [ValidateNotNullOrEmpty()]
        [String]$LiteralPath
    )
    
    $response = Send-RequestFile -method "GET" -endpoint "/images/$($Uuid)/file" -LiteralPath $LiteralPath
    return $response
}