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