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