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