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