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