Public/Set-AccessControlPolicy.ps1

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


function Set-AccessControlPolicy {
    [CmdletBinding()]
    param (
        $access_control_policy
    )
    
    $uuid = $access_control_policy.metadata.uuid
    $data = $access_control_policy

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