Public/Get-Task.ps1
<#
.DESCRIPTION Wrapper for Nutanix API version 0.3. .NOTES Author: Timothy Rasiah #> function Get-Task { [CmdletBinding()] param ( $uuid ) if ($uuid) { $response = Send-Request -method "GET" -endpoint "/tasks/$($uuid)" return $response } $data = @{ "kind" = "task" } $response = Send-Request -method "POST" -endpoint "/tasks/list" -data $data return $response.entities } |