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