Public/Set-NgtPolicy.ps1

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


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

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