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