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