Public/Send-Report.ps1
<#
.DESCRIPTION Wrapper for Nutanix API version 0.3. .NOTES Author: Timothy Rasiah #> function Send-Report { [CmdletBinding()] param ( [Parameter(Mandatory=$true)] [String]$Uuid, [String[]]$RecipientList ) $data = @{ "report_config_reference" = @{ "kind" = "report_config" "uuid" = $uuid } } if ($RecipientList) { $data["recipient_list"] = $RecipientList } $response = Send-Request -method "POST" -endpoint "/reports/notify" -data $data return $response } |