Public/Set-ServiceGroup.ps1

<#
    .DESCRIPTION
    Wrapper for Nutanix API version 0.3.
 
    .NOTES
    Author: Timothy Rasiah
#>


function Set-ServiceGroup {
    [CmdletBinding()]
    param (
        $service_group
    )
    
    $uuid = $service_group.uuid
    $data = $service_group.service_group

    $response = Send-Request -method "PUT" -endpoint "/service_groups/$($uuid)" -data $data
    return $response
}